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: plugins/node/opentelemetry-instrumentation-knex/README.md
+29-12Lines changed: 29 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -54,21 +54,38 @@ registerInstrumentations({
54
54
55
55
## Semantic Conventions
56
56
57
-
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)
57
+
This package uses `@opentelemetry/semantic-conventions` version `1.33+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)
58
+
59
+
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.33.0](https://github.com/open-telemetry/semantic-conventions/blob/v1.33.0/docs/database/database-spans.md)
60
+
It is controlled using the environment variable `OTEL_SEMCONV_STABILITY_OPT_IN`, which is a comma separated list of values.
61
+
The values `database` and `database/dup` control this instrumentation.
62
+
See details for the behavior of each of these values below.
63
+
If neither `database` or `database/dup` is included in `OTEL_SEMCONV_STABILITY_OPT_IN`, the old experimental semantic conventions will be used by default.
64
+
65
+
### Upgrading Semantic Conventions
66
+
67
+
When upgrading to the new semantic conventions, it is recommended to do so in the following order:
68
+
69
+
1. Upgrade `@opentelemetry/instrumentation-knex` to the latest version
70
+
2. Set `OTEL_SEMCONV_STABILITY_OPT_IN=database/dup` to emit both old and new semantic conventions
71
+
3. Modify alerts, dashboards, metrics, and other processes to expect the new semantic conventions
72
+
4. Set `OTEL_SEMCONV_STABILITY_OPT_IN=database` to emit only the new semantic conventions
73
+
74
+
This will cause both the old and new semantic conventions to be emitted during the transition period.
0 commit comments