-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[loadgen] - add baggage #331
[loadgen] - add baggage #331
Conversation
I pulled the branch and did a fresh docker build. I'm not seeing any baggage attribute being created or passed down from the load gen |
baggage doesn't get exported. The only way to see it is to capture the HTTP headers and sniff out the |
How are we expecting baggage to be consumed then if it’s not appearing in jaeger? Ideally in grafana & jaeger we have filters on is synthetic |
I think one must write a SpanProcessor to read Baggage and add it as Span Attributes. Baggage is not automatically attached to Spans or Logs or Metrics by default. (some old discussions from spec open-telemetry/opentelemetry-specification#867) |
As was mentioned baggage isn't meant to be exported by OTLP. Some have written SpanProcessors that will take items out of baggage and add them as span attributes before getting exported. Here is an example of one in Go: https://github.com/honeycombio/honeycomb-opentelemetry-go/blob/main/baggage_span_processor.go We still want people to know baggage was used to drive something about the webstore telemetry. So #332 will add a span attribute We should most certainly document this stuff, and how baggage is used in downstream services. |
If I got that right, in a real life scenario we could decide to create or not the spans based on the baggage. |
My 0.02, you wouldn't necessarily want to create spans or not based on baggage (although you could), but it would be useful to insert into the telemetry as an attribute. Let's say you have an SLO (or any other kind of alert) on some API route, perhaps you'd want to filter out synthetic requests from impacting that SLO since it doesn't affect "real" users. |
* add baggage * add baggage * add load generator baggage
Fixes #329
Changes
synthetic_request=true
baggage to all requestsCHANGELOG.md
updated for non-trivial changes