-
Notifications
You must be signed in to change notification settings - Fork 576
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
exporters/autoexport: add support for comma-separated values for OTEL_{METRICS,TRACES,LOGS}_EXPORTER #5830
base: main
Are you sure you want to change the base?
exporters/autoexport: add support for comma-separated values for OTEL_{METRICS,TRACES,LOGS}_EXPORTER #5830
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5830 +/- ##
=====================================
Coverage 65.6% 65.7%
=====================================
Files 204 206 +2
Lines 12974 13027 +53
=====================================
+ Hits 8522 8565 +43
- Misses 4198 4205 +7
- Partials 254 257 +3
|
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.
(haven't gone through the PR yet)
This is a rather large PR which, at a first glance, seems not to include only what's described in the PR title. Could it be split into smaller PRs? |
…OTEL_*_EXPORTER (open-telemetry#4471) This commit introduces the support of comma-separated value for OTEL_{METRICS,TRACES,LOGS}_EXPORTER. New functions can now be used to intialize a list of exporters: NewMetricReaders, NewLogExporters, NewSpanExporters. Old ones (NewMetricReader, NewLogExporter, NewSpanExporter) are now deprecated but still continue to do they initial work to avoid breaking change. Signed-off-by: thomasgouveia <[email protected]>
Signed-off-by: thomasgouveia <[email protected]>
5eed2fe
to
2886f35
Compare
Signed-off-by: thomasgouveia <[email protected]>
Signed-off-by: thomasgouveia <[email protected]>
Signed-off-by: thomasgouveia <[email protected]>
Signed-off-by: thomasgouveia <[email protected]>
…rib into f-rework-autoexport
Signed-off-by: thomasgouveia <[email protected]>
Hi @dmathieu, I've updated the PR to remove code changes unrelated to the feature. Let me know if I missed something! |
This PR introduces the support of comma-separated values for the following environment variables:
OTEL_TRACES_EXPORTER
OTEL_LOGS_EXPORTER
OTEL_METRICS_EXPORTER
The functions
NewLogExporter
,NewMetricReader
, andNewSpanExporter
are now deprecated but will continue to work to ensure backward compatibility. Users must consider moving toNewLogExporters
,NewMetricReaders
, andNewSpanExporters
to initialize one or more exporters. (See example_test.go).Unit tests were adapted to use the newly created functions. A test has been added for each signal to ensure the respective deprecated function continues working.
Blocked by #5816 (will need to be rebased once merged)Closes #4471