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

Define configuration for enabling sqlcommenter

Open tammy-baylis-swi opened this issue 2 years ago • 3 comments

It would be great if there was a convention for how to enable sqlcommenter for those OTel libraries that have it implemented.

At the moment I see some Python and JS instrumentation libraries do this with a boolean, though the naming is inconsistent. Examples:

If instead we had OTEL_SQLCOMMENTER_ENABLED (or similar) then this could be adopted by existing libraries and more libraries as sqlcommenter is implemented. It could also be exposed as an environment variable used in auto-instrumentation and manual instrumentation.

tammy-baylis-swi avatar Jun 20 '23 18:06 tammy-baylis-swi

cc @open-telemetry/configuration-maintainers

carlosalberto avatar Jun 26 '23 12:06 carlosalberto

This is blocked by the configuration SIG - adding it to their board.

austinlparker avatar May 14 '24 20:05 austinlparker

This is blocked by the configuration SIG

What do you mean blocked?

jack-berg avatar May 16 '24 20:05 jack-berg

This is blocked by the configuration SIG

What do you mean blocked?

This was proposing an env var, and I thought config SIG was saying 'no new env vars for now', but more generally I think the new config stuff would cover how to do this in a generic sort of way?

austinlparker avatar Jul 23 '24 20:07 austinlparker

No env vars for now is right, but someone who is motivated can push to define this as part of the config data model defined in opentelemetry-configuration. My understanding is sqlcommenter is instrumentation. There's a section of the configuration schema dedicated to instrumentation config.

jack-berg avatar Jul 23 '24 20:07 jack-berg

No env vars for now is right, but someone who is motivated can push to define this as part of the config data model defined in opentelemetry-configuration. My understanding is sqlcommenter is instrumentation. There's a section of the configuration schema dedicated to instrumentation config.

this can be accomplished now directly in the https://github.com/open-telemetry/opentelemetry-configuration, so closing this issue

trask avatar Sep 24 '24 20:09 trask