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

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

Merged
gbbr merged 2 commits into
masterfrom
alexjf/propagate-event-priority
Nov 19, 2018
Merged

event: Ensure event priorities are propagated to Datadog backend.#527
gbbr merged 2 commits into
masterfrom
alexjf/propagate-event-priority

Conversation

@AlexJF

@AlexJF AlexJF commented Nov 19, 2018

Copy link
Copy Markdown

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

@gbbr gbbr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread event/processor.go Outdated
Comment thread event/processor_test.go Outdated
@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