apm
apm copied to clipboard
Correlate Synthetics monitor execution with APM
Related issue - https://github.com/elastic/apm-dev/issues/1024
Proposal
- [x] Create trace from synthetics and passing it via
traceparent
header to configured backends, includes HTTP and Browser based monitors. Sampling decision is controlled from Synthetics trace. - [x] Annotate requests to APM in the Synthetics step waterfall.
- [x] Ability to annotate requests coming from Synthetics in the APM via UA or
tracestate
header. - [x] Implement a
behaviour where linking back from APM to Synthetics monitor + step trace would be seamless. - Might require individual
trace.id
for each steps in an journey as there can be N number of steps and each step could contain multiple APM backend calls.
- Might require individual
- These changes ensures we maintain full compatbility with the OTEL agents and does not require any modifications on the APM server.
More details on the proposal can be seen in this thread - https://github.com/elastic/apm-dev/issues/1024#issuecomment-1670150114
Linking https://github.com/elastic/synthetics/pull/595