-
Notifications
You must be signed in to change notification settings - Fork 793
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
fix(monitoring): don't override user set environment variables #4807
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, we need to set via environment for controlling on kubernetes.
I'm find with having hierarchical to check for env -> variable
gPRC exporter seems to be a separate PR.
Why? Is that specific to BentoCloud because the user doesn't actually have control over the Pod's spec? Otherwise, the user should still be responsible for setting the environment variables of their own Pods? I'm confused because we're running on Kubernetes and specifically don't want these env vars overridden.
That still strikes me as leading so some slightly odd behaviour. For example, imagine you want to send traces and logs to two different OTLP Collectors (as I do). I set the environment variables match the endpoint I want to send the traces to and I configure the logs via code in the At the very very very least there should probably be something either as a comment in the code or in the docs explaining what the behaviour is. |
True... but also some of the arguments and environment variables being set literally do nothing so I'd almost argue that support the GRPC Exporter is a fix rather than a feature addition 😆 |
Alternatively, should we be setting only the |
OTLPLogExporter
What does this PR address?
This PR is stacked on top of #4808
It shocked me that this bit of code sets environment variables! Does this not make it possible for
monitoring
andtracing
configuration to conflict?#3257 (comment)
Before submitting:
guide on how to create a pull request.
pre-commit run -a
script has passed (instructions)?those accordingly? Here are documentation guidelines and tips on writting docs.