apm icon indicating copy to clipboard operation
apm copied to clipboard

Correlate Synthetics monitor execution with APM

Open vigneshshanmugam opened this issue 1 year ago • 1 comments

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.
  • 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

vigneshshanmugam avatar Aug 16 '23 18:08 vigneshshanmugam

Linking https://github.com/elastic/synthetics/pull/595

paulb-elastic avatar Aug 29 '23 16:08 paulb-elastic