Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: Auto instrumentation paramaters proposal #2439

Closed
wants to merge 2 commits into from

Conversation

jeremydvoss
Copy link
Contributor

@jeremydvoss jeremydvoss commented Apr 18, 2024

Description

Currently, the only way for custom distros to configure is through setting or defaulting environment variables. While it makes sense for customers to configure distros with env vars. There is no reason distros should need be able to directly configure start up (exporters, samplers...etc). Exposing distro configuration of otel via env var defaults is invasive, confusing, and easy for users to mess up. For instrance, even a blank env var or a left over setting from previous run could interfere with a distro starting up.

This is a draft proposal for what changing this approach could look like. In this approach, distros can output kwargs that our sitecustomize setup can then pass to configurators, and by extension the _initialize_components method which currently only considers env vars.

main repo pr: open-telemetry/opentelemetry-python#3864
contrib pr: #2439

@jeremydvoss jeremydvoss changed the title Auto instrumentation paramaters proposal DO NOT MERGE: Auto instrumentation paramaters proposal Apr 18, 2024
@jeremydvoss
Copy link
Contributor Author

Closing because custom configurators can handle kwargs instead. No need for the distros to return anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant