-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enable propagation of the trace context from collector #5670
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5670 +/- ##
==========================================
+ Coverage 91.73% 91.86% +0.13%
==========================================
Files 197 197
Lines 12465 12472 +7
==========================================
+ Hits 11435 11458 +23
+ Misses 814 800 -14
+ Partials 216 214 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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 think you should open an issue to discuss the use case for this before we decide on this PR.
I also left some suggestions to make the configuration more consistent with existing practices on the Collector.
Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
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.
The config struct looks sensible, and it sounds like a feature we can support at this level.
I don't feel very comfortable with comitting to autoprop which has had a single version so far and is not 1.0, but I guess since we can still make breaking changes we can change our mind later (specially if we have this off-by-default for now)
@Aneurysm9 adjusted the PR per your suggestion on using feature gate. Please let me know WDYT. PR description modified accordingly. |
Hello @bogdandrutu @jpkrohling - The autoprop api is officially released and I have updated the PR. The PR is complete. Please review and give your blessings. :) service:
telemetry:
traces:
propagators: "tracecontext,b3"
|
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.
Please, revert the "retract" changes to the go.mod files. If they were intentional, please open a new PR with those isolated changes.
Other than that, LGTM, but I believe @bogdandrutu needs to sign off as well, given he had comments before.
done! |
(Done!) @bogdandrutu can you please review and let me know. |
Updated the PR per @bogdandrutu suggestion, the configuration is a list now receivers:
otlp:
protocols:
grpc:
exporters:
otlphttp:
endpoint: http://0.0.0.0:3000
traces_endpoint: http://0.0.0.0:3000/v1/trace
tls:
insecure: true
logging:
processors:
batch:
service:
telemetry:
traces:
propagators:
- tracecontext
- b3
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp, logging]
processors: [batch] ./otelcorecol_darwin_amd64 --config test.yaml --feature-gates=telemetry.allowTraceContextPropagation produces the following headers in the export request. 2022/08/12 11:13:30 request headers: map[Accept-Encoding:[gzip] B3:[d6550dfa8b9c5e0f10acd6533391f08f-4bd7dc181ad45baf-0] Content-Encoding:[gzip] Content-Length:[276] Content-Type:[application/x-protobuf] Traceparent:[00-d6550dfa8b9c5e0f10acd6533391f08f-4bd7dc181ad45baf-00] User-Agent:[Local OpenTelemetry Collector binary, testing only./0.58.0-dev (darwin/amd64)]] |
@bogdandrutu - just summarizing the suggestions from you, to make sure I didn;t miss any
Please let me know if my understanding of these changes you suggested is correct? |
Correct
This is too complicated, let's go with a simple thing. Remove the featuregate and make default config to be "empty list" which means this is disable by default. Then in a separate PR we can discuss about adding a featuregate to change the default config. |
Thanks @bogdandrutu - updated the PR per your suggestions. Kindly review |
Description:
Added support to propagate traceparent etc headers from collector to the downstream entities that process the export requests from collector.
Link to tracking Issue: 5572
Testing:
running
gives
for config
(and)
for config