-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pod-annotations' of https://github.com/tokaplan/semanti…
…c-conventions into pod-annotations
- Loading branch information
Showing
21 changed files
with
187 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!--- Hugo front matter used to generate the website version of this page: | ||
linkTitle: Client | ||
---> | ||
|
||
# Client Attributes | ||
|
||
These attributes may be used to describe the client in a connection-based network interaction | ||
where there is one side that initiates the connection (the client is the side that initiates the connection). | ||
This covers all TCP network interactions since TCP is connection-based and one side initiates the | ||
connection (an exception is made for peer-to-peer communication over TCP where the "user-facing" surface of the | ||
protocol / API does not expose a clear notion of client and server). | ||
This also covers UDP network interactions where one side initiates the interaction, e.g. QUIC (HTTP/3) and DNS. | ||
|
||
<!-- semconv client(omit_requirement_level) --> | ||
| Attribute | Type | Description | Examples | | ||
|---|---|---|---| | ||
| `client.address` | string | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1] | `client.example.com`; `10.1.2.80`; `/tmp/my.sock` | | ||
| `client.port` | int | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>Client port number. [2] | `65123` | | ||
|
||
**[1]:** When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available. | ||
|
||
**[2]:** When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available. | ||
<!-- endsemconv --> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!--- Hugo front matter used to generate the website version of this page: | ||
linkTitle: Destination | ||
---> | ||
|
||
# Destination Attributes | ||
|
||
These attributes may be used to describe the receiver of a network exchange/packet. These should be used | ||
when there is no client/server relationship between the two sides, or when that relationship is unknown. | ||
This covers low-level network interactions (e.g. packet tracing) where you don't know if | ||
there was a connection or which side initiated it. | ||
This also covers unidirectional UDP flows and peer-to-peer communication where the | ||
"user-facing" surface of the protocol / API does not expose a clear notion of client and server. | ||
|
||
<!-- semconv destination(omit_requirement_level) --> | ||
| Attribute | Type | Description | Examples | | ||
|---|---|---|---| | ||
| `destination.address` | string | Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1] | `destination.example.com`; `10.1.2.80`; `/tmp/my.sock` | | ||
| `destination.port` | int | Destination port number | `3389`; `2888` | | ||
|
||
**[1]:** When observed from the source side, and when communicating through an intermediary, `destination.address` SHOULD represent the destination address behind any intermediaries, for example proxies, if it's available. | ||
<!-- endsemconv --> |
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,23 @@ | ||
<!--- Hugo front matter used to generate the website version of this page: | ||
linkTitle: Server | ||
---> | ||
|
||
# Server Attributes | ||
|
||
These attributes may be used to describe the server in a connection-based network interaction | ||
where there is one side that initiates the connection (the client is the side that initiates the connection). | ||
This covers all TCP network interactions since TCP is connection-based and one side initiates the | ||
connection (an exception is made for peer-to-peer communication over TCP where the "user-facing" surface of the | ||
protocol / API does not expose a clear notion of client and server). | ||
This also covers UDP network interactions where one side initiates the interaction, e.g. QUIC (HTTP/3) and DNS. | ||
|
||
<!-- semconv server(omit_requirement_level) --> | ||
| Attribute | Type | Description | Examples | | ||
|---|---|---|---| | ||
| `server.address` | string | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1] | `example.com`; `10.1.2.80`; `/tmp/my.sock` | | ||
| `server.port` | int | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>Server port number. [2] | `80`; `8080`; `443` | | ||
|
||
**[1]:** When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available. | ||
|
||
**[2]:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available. | ||
<!-- endsemconv --> |
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,21 @@ | ||
<!--- Hugo front matter used to generate the website version of this page: | ||
linkTitle: Source | ||
---> | ||
|
||
# Source Attributes | ||
|
||
These attributes may be used to describe the sender of a network exchange/packet. These should be used | ||
when there is no client/server relationship between the two sides, or when that relationship is unknown. | ||
This covers low-level network interactions (e.g. packet tracing) where you don't know if | ||
there was a connection or which side initiated it. | ||
This also covers unidirectional UDP flows and peer-to-peer communication where the | ||
"user-facing" surface of the protocol / API does not expose a clear notion of client and server. | ||
|
||
<!-- semconv source(omit_requirement_level) --> | ||
| Attribute | Type | Description | Examples | | ||
|---|---|---|---| | ||
| `source.address` | string | Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. [1] | `source.example.com`; `10.1.2.80`; `/tmp/my.sock` | | ||
| `source.port` | int | Source port number | `3389`; `2888` | | ||
|
||
**[1]:** When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent the source address behind any intermediaries, for example proxies, if it's available. | ||
<!-- endsemconv --> |
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.