opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Implement stable db semantic conventions

Open JamieDanielson opened this issue 6 months ago • 1 comments
trafficstars

This is a tracking issue for updating instrumentations to allow for dual emitting stable and experimental Database attributes.

Add environment variable option OTEL_SEMCONV_STABILITY_OPT_IN that includes database and database/dup options as recommended in the Database Migration Plan.

  • database - emit the stable database conventions, and stop emitting the old database conventions that the instrumentation emitted previously.
  • database/dup - emit both the old and the stable database conventions, allowing for a phased rollout of the stable semantic conventions.
  • The default behavior (in the absence of one of these values) is to continue emitting whatever version of the old database conventions the instrumentation was emitting previously.

Note: This will use a shared SemconvStability enum and function soon to be available for use.

JamieDanielson avatar May 07 '25 20:05 JamieDanielson