Skip to content

Commit

Permalink
Add example of where current span comes from
Browse files Browse the repository at this point in the history
  • Loading branch information
burningion authored Jun 12, 2019
1 parent 2e0a3b2 commit d7a9055
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 d7a9055

Please sign in to comment.