-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Net attributes getters changes (in preparation for HTTP spec impl) (#…
…6503) * Net attributes getters changes: instrumentation-api-semconv changes * Net attributes getters changes: getter implementations * Net attributes getters changes: test fixes * Remove net.sock.host.name * code review comments * default getter methods & getPeerSocketAddress() method name * set authority in grpc earlier
- Loading branch information
Mateusz Rzeszutek
authored
Sep 12, 2022
1 parent
24e92b2
commit cfdbe75
Showing
127 changed files
with
2,219 additions
and
861 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
26 changes: 26 additions & 0 deletions
26
...nv/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/net/NetAttributes.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,26 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.api.instrumenter.net; | ||
|
||
import io.opentelemetry.api.common.AttributeKey; | ||
|
||
// this class will be removed once SemanticAttributes contains all new net.* attributes | ||
final class NetAttributes { | ||
|
||
static final AttributeKey<String> NET_SOCK_FAMILY = AttributeKey.stringKey("net.sock.family"); | ||
static final AttributeKey<String> NET_SOCK_PEER_ADDR = | ||
AttributeKey.stringKey("net.sock.peer.addr"); | ||
static final AttributeKey<String> NET_SOCK_PEER_NAME = | ||
AttributeKey.stringKey("net.sock.peer.name"); | ||
static final AttributeKey<Long> NET_SOCK_PEER_PORT = AttributeKey.longKey("net.sock.peer.port"); | ||
static final AttributeKey<String> NET_SOCK_HOST_ADDR = | ||
AttributeKey.stringKey("net.sock.host.addr"); | ||
static final AttributeKey<Long> NET_SOCK_HOST_PORT = AttributeKey.longKey("net.sock.host.port"); | ||
|
||
static final String SOCK_FAMILY_INET = "inet"; | ||
|
||
private NetAttributes() {} | ||
} |
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
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
Oops, something went wrong.