Skip to content

Commit

Permalink
Merge pull request #766 from DataDog/kirk.kaiser/update-priority-samp…
Browse files Browse the repository at this point in the history
…ling-doc

Add example of where current span comes from
  • Loading branch information
delner committed Jun 26, 2019
2 parents 1522b9d + d7a9055 commit fd39995
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,9 @@ When not using [distributed tracing](#distributed-tracing), you may change the p
If you change the priority, we recommend you do it as soon as possible, when the root span has just been created.

```ruby
# First, grab the active span
span = Datadog.tracer.active_span
# Indicate to reject the trace
span.context.sampling_priority = Datadog::Ext::Priority::USER_REJECT
Expand Down

0 comments on commit fd39995

Please sign in to comment.