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
|`http.url` / `url.full`| Full request URL. See "HTTP Semantic Convention migration" note below. |
68
68
69
69
\* included in all of the spans.
70
70
71
+
### HTTP Semantic Convention migration
72
+
73
+
HTTP semantic conventions (semconv) were stabilized in v1.23.0, and a [migration process](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/non-normative/http-migration.md#http-semantic-convention-stability-migration)
74
+
was defined. This instrumentations adds some minimal HTTP-related
75
+
attributes on created spans. Starting with `instrumentation-nestjs-core` version
76
+
0.52.0, the `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable can be used to
77
+
customize which HTTP semantic conventions are used for those HTTP-related
78
+
attributes.
79
+
80
+
To select which semconv version(s) is emitted from this instrumentation, use the
-`http/dup`: emit **both** the old v1.7.0 and the new (stable) v1.23.0+ semantics
85
+
- By default, if `OTEL_SEMCONV_STABILITY_OPT_IN` includes neither of the above tokens, the old v1.7.0 semconv is used.
86
+
87
+
For this instrumentation, the only impacted attributes are as follows:
88
+
89
+
| v1.7.0 semconv | v1.23.0 semconv |
90
+
| -------------- | --------------------- |
91
+
|`http.method`|`http.request.method`|
92
+
|`http.url`|`url.full`|
93
+
94
+
See the [HTTP semconv migration plan for OpenTelemetry JS instrumentations](https://github.com/open-telemetry/opentelemetry-js/issues/5646) for more details.
95
+
71
96
## Useful links
72
97
73
98
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
0 commit comments