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: experimental/packages/opentelemetry-instrumentation-http/README.md
+38-1Lines changed: 38 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,44 @@ The following options are deprecated:
76
76
77
77
## Semantic Conventions
78
78
79
-
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)
79
+
### Client Spans
80
+
81
+
Prior to version `0.54`, this instrumentation created spans targeting an experimental semantic convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md).
82
+
83
+
This package is capable of emitting both Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md) and [Version 1.27.0](https://github.com/open-telemetry/semantic-conventions/blob/v1.27.0/docs/http/http-spans.md).
84
+
It is controlled using the environment variable `OTEL_SEMCONV_STABILITY_OPT_IN`, which is a comma separated list of values.
85
+
The values `http` and `http/dup` control this instrumentation.
86
+
See details for the behavior of each of these values below.
87
+
If neither `http` or `http/dup` is included in `OTEL_SEMCONV_STABILITY_OPT_IN`, the old experimental semantic conventions will be used by default.
88
+
89
+
#### Stable Semantic Conventions 1.27
90
+
91
+
Enabled when `OTEL_SEMCONV_STABILITY_OPT_IN` contains `http` OR `http/dup`.
92
+
This is the recommended configuration, and will soon become the default behavior.
93
+
94
+
Follow all requirements and recommendations of HTTP Client Span Semantic Conventions [Version 1.27.0](https://github.com/open-telemetry/semantic-conventions/blob/v1.27.0/docs/http/http-spans.md), including all required and recommended attributes.
95
+
96
+
#### Legacy Behavior (default)
97
+
98
+
Enabled when `OTEL_SEMCONV_STABILITY_OPT_IN` contains `http/dup` or DOES NOT CONTAIN `http`.
99
+
This is the current default behavior.
100
+
101
+
Create HTTP client spans which implement Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md).
102
+
103
+
#### Upgrading Semantic Conventions
104
+
105
+
When upgrading to the new semantic conventions, it is recommended to do so in the following order:
106
+
107
+
1. Upgrade `@opentelemetry/instrumentation-http` to the latest version
108
+
2. Set `OTEL_SEMCONV_STABILITY_OPT_IN=http/dup` to emit both old and new semantic conventions
109
+
3. Modify alerts, dashboards, metrics, and other processes to expect the new semantic conventions
110
+
4. Set `OTEL_SEMCONV_STABILITY_OPT_IN=http` to emit only the new semantic conventions
111
+
112
+
This will cause both the old and new semantic conventions to be emitted during the transition period.
113
+
114
+
### Server Spans
115
+
116
+
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md).
0 commit comments