-
Notifications
You must be signed in to change notification settings - Fork 873
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: instrumentation-api-semconv changes
- Loading branch information
Mateusz Rzeszutek
committed
Aug 30, 2022
1 parent
c04a6a3
commit 3abaf5e
Showing
11 changed files
with
598 additions
and
237 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
28 changes: 28 additions & 0 deletions
28
...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,28 @@ | ||
/* | ||
* 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<String> NET_SOCK_HOST_NAME = | ||
AttributeKey.stringKey("net.sock.host.name"); | ||
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.