Skip to content

Conversation

@tomerqodo
Copy link

Benchmark PR elastic#137908

Type: Clean (correct implementation)

Original PR Title: Various tracing fixes
Original PR Description: This PR fixes various issues causing an excessive volume of APM events and incorrectly reported transaction & span durations as described in further detail:

  • Only continue tracing in TaskManager if a parent APM trace context exists. Trace headers might
    be set by external transactions as well. If present, it caused APMTracer to report a transaction
    for every span when in fact being sampled out.

  • Correctly report the duration of transactions if not recording by not discarding the root span
    immediately. These transactions might still get reported, but without spans.

  • Discard transient trace start time in newTraceContext when a parent APM trace context
    already exists. If propagated, all spans would start at the same time.

Relates to ES-13389
Original PR URL: elastic#137908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants