-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1233 from andreaTP/issue-1232
Remove `-alpha` OpenTelemetry dependencies
- Loading branch information
Showing
5 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ents/http/okHttp/src/main/java/com/microsoft/kiota/http/TelemetrySemanticConventions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 class 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 = stringKey("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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters