Skip to content

Commit

Permalink
Add trace semantic conventions attributes for application layer proto…
Browse files Browse the repository at this point in the history
…cols
  • Loading branch information
pyohannes committed May 20, 2022
1 parent a9397ad commit 4f1c4a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions semantic_conventions/trace/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ groups:
brief: 'Something else (non IP-based).'
brief: >
Transport protocol used. See note below.
- id: protocol.name
type: string
brief: 'Application layer protocol used. The value SHOULD be normalized to lowercase.'
examples: ['amqp', 'http', 'nntp']
- id: protocol.version
type: string
brief: 'Version of the application layer protocol used.'
examples: '0.9.1'
- id: peer.ip
type: string
brief: >
Expand Down
2 changes: 2 additions & 0 deletions specification/trace/semantic_conventions/span-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ the `net.peer.*` properties of a client are equal to the `net.host.*` properties
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `net.transport` | string | Transport protocol used. See note below. | `ip_tcp` | No |
| `net.protocol.name` | string | Application layer protocol used. The value SHOULD be normalized to lowercase. | `amqp`; `http`; `nntp` | No |
| `net.protocol.version` | string | Version of the application layer protocol used. | `0.9.1` | No |
| `net.peer.ip` | string | Remote address of the peer (dotted decimal for IPv4 or [RFC5952](https://tools.ietf.org/html/rfc5952) for IPv6) | `127.0.0.1` | No |
| `net.peer.port` | int | Remote port number. | `80`; `8080`; `443` | No |
| `net.peer.name` | string | Remote hostname or similar, see note below. [1] | `example.com` | No |
Expand Down

0 comments on commit 4f1c4a4

Please sign in to comment.