
com.microsoft.kiota.http.TelemetrySemanticConventions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft-kiota-http-okHttp Show documentation
Show all versions of microsoft-kiota-http-okHttp Show documentation
Microsoft Kiota-Http with okHttp
package com.microsoft.kiota.http;
import static io.opentelemetry.api.common.AttributeKey.longKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
/**
* This class contains the telemetry attribute keys used by this library.
*/
public final class TelemetrySemanticConventions {
private TelemetrySemanticConventions() {}
// https://opentelemetry.io/docs/specs/semconv/attributes-registry/
/**
* HTTP Response status code
*/
public static final AttributeKey HTTP_RESPONSE_STATUS_CODE =
longKey("http.response.status_code"); // stable
/**
* HTTP Request resend count
*/
public static final AttributeKey HTTP_REQUEST_RESEND_COUNT =
longKey("http.request.resend_count"); // stable
/**
* HTTP Request method
*/
public static final AttributeKey HTTP_REQUEST_METHOD =
stringKey("http.request.method"); // stable
/**
* Network connection protocol version
*/
public static final AttributeKey NETWORK_PROTOCOL_VERSION =
stringKey("network.protocol.version"); // stable
/**
* Full HTTP request URL
*/
public static final AttributeKey URL_FULL = stringKey("url.full"); // stable
/**
* HTTP request URL scheme
*/
public static final AttributeKey URL_SCHEME = stringKey("url.scheme"); // stable
/**
* HTTP request destination server address
*/
public static final AttributeKey SERVER_ADDRESS = stringKey("server.address"); // stable
/**
* HTTP request destination server port
*/
public static final AttributeKey SERVER_PORT = longKey("server.port"); // stable
/**
* HTTP response body size
*/
public static final AttributeKey EXPERIMENTAL_HTTP_RESPONSE_BODY_SIZE =
longKey("http.response.body.size"); // experimental
/**
* HTTP request body size
*/
public static final AttributeKey EXPERIMENTAL_HTTP_REQUEST_BODY_SIZE =
longKey("http.request.body.size"); // experimental
/**
* HTTP response content type
*/
public static final AttributeKey CUSTOM_HTTP_RESPONSE_CONTENT_TYPE =
stringKey("http.response_content_type"); // custom
/**
* HTTP request content type
*/
public static final AttributeKey CUSTOM_HTTP_REQUEST_CONTENT_TYPE =
stringKey("http.request_content_type"); // custom
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy