Skip to content

Commit 3408678

Browse files
authored
Remove network.type from HTTP semconv (changing it from recommended to opt-in) (#410)
1 parent 242268e commit 3408678

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ release.
1515
([#376](https://github.com/open-telemetry/semantic-conventions/pull/376))
1616
- BREAKING: Change `network.transport` from recommended to opt-in in HTTP semconv.
1717
([#402](https://github.com/open-telemetry/semantic-conventions/pull/402))
18+
- BREAKING: Change `network.type` from recommended to opt-in in HTTP semconv.
19+
([#410](https://github.com/open-telemetry/semantic-conventions/pull/410))
1820

1921
### Features
2022

docs/http/http-spans.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ sections below.
126126
| [`network.protocol.name`](../general/attributes.md) | string | [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. [6] | `http`; `spdy` | Recommended: if not default (`http`). |
127127
| [`network.protocol.version`](../general/attributes.md) | string | Version of the protocol specified in `network.protocol.name`. [7] | `1.0`; `1.1`; `2`; `3` | Recommended |
128128
| [`network.transport`](../general/attributes.md) | string | [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://en.wikipedia.org/wiki/Inter-process_communication). [8] | `tcp`; `udp` | Opt-In |
129-
| [`network.type`](../general/attributes.md) | string | [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. [9] | `ipv4`; `ipv6` | Recommended |
130129
| `user_agent.original` | string | Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. | `CERN-LineMode/2.15 libwww/2.17b3` | Recommended |
131130

132131
**[1]:** If the request fails with an error before response status code was sent or received,
@@ -177,8 +176,6 @@ The attribute value MUST consist of either multiple header values as an array of
177176

178177
**[8]:** Generally `tcp` for `HTTP/1.0`, `HTTP/1.1`, and `HTTP/2`. Generally `udp` for `HTTP/3`. Other obscure implementations are possible.
179178

180-
**[9]:** The value SHOULD be normalized to lowercase.
181-
182179
Following attributes MUST be provided **at span creation time** (when provided at all), so they can be considered for sampling decisions:
183180

184181
* [`http.request.method`](../attributes-registry/http.md)
@@ -212,13 +209,6 @@ Following attributes MUST be provided **at span creation time** (when provided a
212209
| `udp` | UDP |
213210
| `pipe` | Named or anonymous pipe. See note below. |
214211
| `unix` | Unix domain socket |
215-
216-
`network.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
217-
218-
| Value | Description |
219-
|---|---|
220-
| `ipv4` | IPv4 |
221-
| `ipv6` | IPv6 |
222212
<!-- endsemconv -->
223213

224214
## HTTP client

model/trace/http.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ groups:
2424
note: >
2525
Generally `tcp` for `HTTP/1.0`, `HTTP/1.1`, and `HTTP/2`. Generally `udp` for `HTTP/3`.
2626
Other obscure implementations are possible.
27-
- ref: network.type
2827
- ref: user_agent.original
2928

3029
- id: trace.http.client

0 commit comments

Comments
 (0)