All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.kiota.http.TelemetrySemanticConventions Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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;

public final class TelemetrySemanticConventions {
    private TelemetrySemanticConventions() {}

    // https://opentelemetry.io/docs/specs/semconv/attributes-registry/
    public static final AttributeKey HTTP_RESPONSE_STATUS_CODE =
            longKey("http.response.status_code"); // stable
    public static final AttributeKey HTTP_REQUEST_RESEND_COUNT =
            longKey("http.request.resend_count"); // stable
    public static final AttributeKey HTTP_REQUEST_METHOD =
            stringKey("http.request.method"); // stable
    public static final AttributeKey NETWORK_PROTOCOL_VERSION =
            stringKey("network.protocol.version"); // stable
    public static final AttributeKey URL_FULL = stringKey("url.full"); // stable
    public static final AttributeKey URL_SCHEME = stringKey("url.scheme"); // stable
    public static final AttributeKey SERVER_ADDRESS = stringKey("server.address"); // stable
    public static final AttributeKey SERVER_PORT = longKey("server.port"); // stable

    public static final AttributeKey EXPERIMENTAL_HTTP_RESPONSE_BODY_SIZE =
            longKey("http.response.body.size"); // experimental
    public static final AttributeKey EXPERIMENTAL_HTTP_REQUEST_BODY_SIZE =
            longKey("http.request.body.size"); // experimental

    public static final AttributeKey CUSTOM_HTTP_RESPONSE_CONTENT_TYPE =
            stringKey("http.response_content_type"); // custom
    public static final AttributeKey CUSTOM_HTTP_REQUEST_CONTENT_TYPE =
            stringKey("http.request_content_type"); // custom
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy