Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

event: Ensure event priorities are propagated to Datadog backend. #527

Merged
merged 2 commits into from
Nov 19, 2018

Conversation

AlexJF
Copy link

@AlexJF AlexJF commented Nov 19, 2018

Trace priority is stored as a metric on the root span.

Therefore, events extracted from the root span (the usual case) already include it by default. However, if events are extracted from non-root spans, they would not include the priority metric when sent to the backend so the backend would not know what priority they were associated with.

This PR ensures priorities are set on extracted event spans if the trace from which they were extracted contained a priority.

@AlexJF AlexJF added this to the 6.7.0 milestone Nov 19, 2018
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

event/processor.go Outdated Show resolved Hide resolved
event/processor_test.go Outdated Show resolved Hide resolved
@gbbr gbbr merged commit 51d141d into master Nov 19, 2018
@gbbr gbbr deleted the alexjf/propagate-event-priority branch November 19, 2018 11:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants