You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: semantic-conventions/README.md
+3
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,9 @@ After `{semantic_convention_id}`, optional parameters enclosed in parentheses ca
67
67
-`ref`: prints attributes that are referenced from another semantic convention;
68
68
-`remove_constraint`: does not print additional constraints of the semantic convention.
69
69
70
+
By default markdown tables are rendered with stability badges (like  or ) which can be disabled with `--md-disable-stable-badge`, `--md-disable-experimental-badge`, `--md-disable-deprecated-badge`.
71
+
When badges are disabled, the stability column contains plain text representation of stability or deprecation status.
72
+
70
73
### Examples
71
74
72
75
These examples assume that a semantic convention with the id `http.server` extends another semantic convention with the id `http`.
| Attribute | Type | Description | Examples |[Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/)|
5
-
|---|---|---|---|---|
6
-
|`custom_http.request.header.<key>`| string[]| HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase, with - characters replaced by _), the value being the header values. |``http.request.header.content_type=["application/json"]``|`Recommended`|
|`general.some_general_attribute.<key>`| string | This is a general attribute. |``some_general_attribute.some_key="abc"``|`Recommended`|
9
-
|`referenced_http.request.referenced.header.<key>`| string[]| This is a referenced attribute. |``http.request.header.content_type=["application/json"]``|`Recommended`|
|`custom_http.request.header.<key>`| string[]| HTTP request headers, `<key>` being the normalized HTTP Header name (lowercase, with - characters replaced by _), the value being the header values. |``http.request.header.content_type=["application/json"]``|`Recommended`| Experimental |
|`general.some_general_attribute.<key>`| string | This is a general attribute. |``some_general_attribute.some_key="abc"``|`Recommended`| Experimental |
9
+
|`referenced_http.request.referenced.header.<key>`| string[]| This is a referenced attribute. |``http.request.header.content_type=["application/json"]``|`Recommended`| Experimental |
Copy file name to clipboardexpand all lines: semantic-conventions/src/tests/data/markdown/deprecated/expected.md
+18-18
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,29 @@
2
2
3
3
<!-- Re-generate TOC with `TODO: ADD cmd` -->
4
4
<!-- semconv http -->
5
-
| Attribute | Type | Description | Examples |[Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/)|
6
-
|---|---|---|---|---|
7
-
|`http.flavor`| string |**Deprecated. Use attribute `flavor_new` instead.**<br>Kind of HTTP protocol used [1]|`1.0`|`Recommended`|
8
-
|`http.host`| string | The value of the [HTTP host header](https://tools.ietf.org/html/rfc7230#section-5.4). When the header is empty or not present, this attribute should be the same. |`www.example.org`|`Recommended`|
|`http.scheme`| string | The URI scheme identifying the used protocol. |`http`; `https`|`Recommended`|
11
-
|`http.status_code`| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`|`Conditionally Required` if and only if one was received/sent |
12
-
|`http.status_text`| string |**Deprecated: Use attribute `status_description` instead.**<br>[HTTP reason phrase](https://tools.ietf.org/html/rfc7230#section-3.1.2). |`OK`|`Recommended`|
13
-
|`http.target`| string | The full request target as passed in a HTTP request line or equivalent. |`/path/12314/?q=ddds#123`|`Recommended`|
14
-
|`http.url`| string | Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless. |`https://www.foo.bar/search?q=OpenTelemetry#SemConv`|`Recommended`|
15
-
|`http.user_agent`| string | Value of the [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) header sent by the client. |`CERN-LineMode/2.15 libwww/2.17b3`|`Recommended`|
|`http.flavor`| string | Kind of HTTP protocol used [1]|`1.0`|`Recommended`| Deprecated: Use attribute `flavor_new` instead.|
8
+
|`http.host`| string | The value of the [HTTP host header](https://tools.ietf.org/html/rfc7230#section-5.4). When the header is empty or not present, this attribute should be the same. |`www.example.org`|`Recommended`| Experimental |
|`http.scheme`| string | The URI scheme identifying the used protocol. |`http`; `https`|`Recommended`| Experimental |
11
+
|`http.status_code`| int |[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |`200`|`Conditionally Required` if and only if one was received/sent | Experimental |
|`http.target`| string | The full request target as passed in a HTTP request line or equivalent. |`/path/12314/?q=ddds#123`|`Recommended`| Experimental |
14
+
|`http.url`| string | Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless. |`https://www.foo.bar/search?q=OpenTelemetry#SemConv`|`Recommended`| Experimental |
15
+
|`http.user_agent`| string | Value of the [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) header sent by the client. |`CERN-LineMode/2.15 libwww/2.17b3`|`Recommended`| Experimental |
16
16
17
17
**[1]:** If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed.
18
18
19
19
`http.flavor` 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.
20
20
21
-
| Value | Description |
22
-
|---|---|
23
-
|`1.0`| HTTP 1.0 |
24
-
|`1.1`| HTTP 1.1 |
25
-
|`2.0`| HTTP 2 |
26
-
|`SPDY`| SPDY protocol. |
27
-
|`QUIC`| QUIC protocol. |
21
+
| Value | Description | Stability |
22
+
|---|---|---|
23
+
|`1.0`| HTTP 1.0 | Experimental |
24
+
|`1.1`| HTTP 1.1 | Experimental |
25
+
|`2.0`| HTTP 2 | Experimental |
26
+
|`SPDY`| SPDY protocol. | Experimental |
27
+
|`QUIC`| QUIC protocol. | Experimental |
28
28
<!-- endsemconv -->
29
29
30
30
It is recommended to also use the general [network attributes][], especially `net.peer.ip`. If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed.
0 commit comments