[Heartbeat] Cross linking APM with Synthetics #36249
Labels
enhancement
Heartbeat
Stalled
Team:obs-ds-hosted-services
Label for the Observability Hosted Services team
Describe the enhancement:
As part of the Crosslinking effort in associating the trace from the Synthetics waterfall to the relevant APM data and vice versa, we need to inject specific information from the Heartbeat side to the underlying Synthetics agent to propagate the information to the downstream services
Meta issue - https://github.com/elastic/apm-dev/issues/1024
Implementation details
To be able to associate a synthetics trace to the APM trace details and also make this account for the future proofing needs, We need to propagate the following information.
ELASTIC_SYNTHETICS_MONITOR_ID
- monitor id of the synthetics monitorELASTIC_SYNTHETICS_TRACE_ID
- checkgroup/exec that begins the synthetics journey, distinct for HTTP monitorsELASTIC_SYNTHETICS_MONITOR_LOCATION
- location where the synthetics monitor is run fromELASTIC_SYNTHETICS_MONITOR_TYPE
- type of the synthetics monitor (browser, http, tcp, etc)Relevant PR on the synthetics agent side for browser monitors - elastic/synthetics#595
HTTP monitors
baggage
andtracestate
headers as the synthetics agent is not involved for these tests.Config Options
trace_urls
- urls where relevant headers would be propagated to the downstream services via thebaggage
header .sample_rate
- sampling decision that will be propagated via thetracestate
header.NOTE: It will be APM agents responsibility to add these baggage and tracestate information to all the transactions and error data which will be indexed to ES by the APM server.
Relevant Issues on APM
The text was updated successfully, but these errors were encountered: