opentelemetry-specification
opentelemetry-specification copied to clipboard
Define configuration for enabling sqlcommenter
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:
- SQLAlchemy instrumentation uses
enable_commenter - Django ORM instrumentation uses
is_sql_commentor_enabled - pg instrumentation uses
addSqlCommenterCommentToQueries
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.
cc @open-telemetry/configuration-maintainers
This is blocked by the configuration SIG - adding it to their board.
This is blocked by the configuration SIG
What do you mean blocked?
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?
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.
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