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
I'm thinking about writing some generic solution for that.
So OTEL_PYTHON_{INSTRUMENT}_{ARG} will be passed automatically.
That way we won't have to implement ENV solution for each and each argument.
For example, OTEL_PYTHON_PYMONGO_CAPTURE_STATEMENT=true will instrument the pymongo instrumentation with {'capture_statement': True}.
@srikanthccv What do you say? Should I open a PR for that?
It may work sometimes, but I think any attempt at a generic solution will likely fail when the args are diverse and non-trivial. A configuration schema is in progress to solve this kind of problem: https://github.com/open-telemetry/opentelemetry-configuration.
I'm using
opentelemetry-instrument
.I want to be able to set a kwarg to enable Redis sanitisation: #1572
Is there any way to supply kwargs to
opentelemetry-instrument
? Environment variables would be a huge bonus.The text was updated successfully, but these errors were encountered: