-
Notifications
You must be signed in to change notification settings - Fork 8.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
Use APM RUM agent to pass Kibana execution context #102615
Comments
Pinging @elastic/kibana-core (Team:Core) |
This will only work once our agents implement support for |
@felixbarny Won't APM RUM agent propagate a bound context? |
No, our agents only propagate the
All the labels are not propagated to downstream services. Instead, each agent directly sends it's spans to APM Server. Using the trace-id it's then possible to correlate the different events. |
ok, I wrongly assumed our agent propagates the standard tracestate header as well. Which can be used to pass custom data. |
Yep, we transmit that, too. But that header is not meant for user-definable key/value pairs. We use that internally to propagate the sampling rate so that we can upscale metrics. |
I think this is made obsolete by #102629 and other recent work. |
In #101587, Kibana is going to use a custom
kbn-context
header to pass execution context during a request from the Kibana browser app to the Kibana server.With elastic/apm-agent-rum-js#1040, we should be able to remove the custom header and switch to APM RUM agent API that will allow associating
context
metadata with an APM transaction. APM RUM agent will take care of serialization and passing context via proper tracing headers.The text was updated successfully, but these errors were encountered: