-
Notifications
You must be signed in to change notification settings - Fork 6
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
Extract OTEL parsing to configMap to allow consistent handling of env #719
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #719 +/- ##
=======================================
Coverage 92.27% 92.27%
=======================================
Files 35 35
Lines 1800 1800
=======================================
Hits 1661 1661
Misses 139 139 ☔ View full report in Codecov by Sentry. |
8158cd6
to
0a29b68
Compare
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.
I suggest @keithralphs take a look too.
I'm happy with this change. It does, however, bring to mind why I initially suggested aligning the OTEL configuration with the rest of the BlueAPI configuration (loaded from YAML, etc.). While it was considered too complex due to the internals of the OTEL library, the fact that we've had to put special handling in here makes me wonder if it's worth revisiting this approach.
Maybe make an issue?
@@ -91,10 +85,11 @@ extraEnvVars: | | |||
|
|||
tracing: | |||
otlp: | |||
export_enabled: false | |||
enabled: false |
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.
Is this doing anything?
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.
Just me being a hater on how clunky the key name is.
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.
Oh I agree with that, but is that key actually used anywhere?
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.
{{ if .Values.tracing.otlp.enabled | default false }}
It is the condition that enables filling the ConfigMap.
need to resolve the port and protocol spec ot it won't work |
@keithralphs fixed both, and have tested that the config map made locally is formatted correctly. |
This handling does not require that string parsing is done on the extraEnvVars, and so resolves the need for them to be a string re: #582