Skip to content

Commit

Permalink
Make client.address and client.port sampling relevant on HTTP server …
Browse files Browse the repository at this point in the history
…spans
  • Loading branch information
trask committed Oct 29, 2023
1 parent a3bec5e commit e22c976
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ release.
([#409](https://github.com/open-telemetry/semantic-conventions/pull/409))
- Remove `url.path` default value.
([#462](https://github.com/open-telemetry/semantic-conventions/pull/462))
- Remove `url.path` default value.
([#462](https://github.com/open-telemetry/semantic-conventions/pull/462))
- Make `client.address` and `client.port` sampling relevant on HTTP server spans.
([#469](https://github.com/open-telemetry/semantic-conventions/pull/469))

### Features

Expand Down
2 changes: 2 additions & 0 deletions docs/http/http-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ SHOULD include the [application root](/docs/http/http-spans.md#http-server-defin

Following attributes MUST be provided **at span creation time** (when provided at all), so they can be considered for sampling decisions:

* [`client.address`](../general/attributes.md)
* [`client.port`](../general/attributes.md)
* [`server.address`](../general/attributes.md)
* [`server.port`](../general/attributes.md)
* [`url.path`](../attributes-registry/url.md)
Expand Down
2 changes: 2 additions & 0 deletions model/trace/http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ groups:
requirement_level: opt_in
brief: Local socket port. Useful in case of a multi-port host.
- ref: client.address
sampling_relevant: true
note: >
The IP address of the original client behind all proxies, if
known (e.g. from [Forwarded](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded),
[X-Forwarded-For](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-For), or a similar header).
Otherwise, the immediate client peer address.
examples: ['83.164.160.102']
- ref: client.port
sampling_relevant: true
brief: >
The port of the original client behind all proxies, if
known (e.g. from [Forwarded](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded) or a similar header).
Expand Down

0 comments on commit e22c976

Please sign in to comment.