Skip to content

Commit

Permalink
ddtrace/ext: add a key for event sampling rate (#386)
Browse files Browse the repository at this point in the history
This change adds a new constant representing the event sampling rate
key for APM events.
  • Loading branch information
gbbr authored Jan 24, 2019
1 parent b264180 commit 823d517
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ddtrace/ext/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const (
// HTTPURL sets the HTTP URL for a span.
HTTPURL = "http.url"

// TODO: In the next major version, suffix these constants (SpanType, etc)
// with "*Key" (SpanTypeKey, etc) to more easily differentiate between
// TODO: In the next major version, prefix these constants (SpanType, etc)
// with "Key*" (KeySpanType, etc) to more easily differentiate between
// constants representing tag values and constants representing keys.

// SpanType defines the Span type (web, db, cache).
Expand All @@ -54,4 +54,8 @@ const (

// Environment specifies the environment to use with a trace.
Environment = "env"

// EventSampleRate specifies the rate at which this span will be sampled
// as an APM event.
EventSampleRate = "_dd1.sr.eausr"
)

0 comments on commit 823d517

Please sign in to comment.