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

added a check for Enable_OTel Enviromental variable #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aidie8
Copy link

@aidie8 aidie8 commented Jun 21, 2024

Created a custom ENV Variable to enable OTEL called "ENABLE_OTEL". having this in ENV and having the feature set in the default with enable OTEL, other wise if ENABLE_OTEL is not present it will default to outputting to std-out.
has relevant logging to show this.

let me know of any improvements.
right now it is Opt-in, this could easily change to opt-out if needed, I think most people wouldn't want OTEL to be setup unless the explicitly wanted it so this way it can easily be used without needing to make sure to disable it

This adds a check for a enviromental variable to explicitly enable OTEL, other wise set the application to output to stdout. in conjunction with ENABLE_OTEL you have to have the OTEL as a default feature,
if you don't have Otel as feature need to add tracing-subscriber as one.
this could probably be better
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.

1 participant