Skip to content

Commit

Permalink
Enable sampling of spans (#164)
Browse files Browse the repository at this point in the history
We provide 10M spans included in every plan, so it'd take quite a while
for uptime to exhaust its quota, even if sending requesting every
minute. The value of seeing spans in every uptime trace is higher.

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
  • Loading branch information
gaprl and getsantry[bot] authored Sep 23, 2024
1 parent ca56f70 commit bed2b29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/checker/http_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ impl Checker for HttpChecker {
let trace_id = TraceId::default();
let span_id = SpanId::default();

// Format the 'sentry-trace' header. The last byte indicates that we are NOT forcing
// sampling on child spans. If we were to set this to '1' it would mean that every
// check request made for that customer would be sampled,
let trace_header = format!("{}-{}-{}", trace_id, span_id, '0');
// Format the 'sentry-trace' header. The last byte indicates that we are forcing
// sampling on child spans (they will be recorded). If we were to set this to '0'
// it would mean that every check request made for that customer would be NOT sampled,
let trace_header = format!("{}-{}-{}", trace_id, span_id, '1');

let start = Instant::now();
let response = do_request(&self.client, config, &trace_header).await;
Expand Down

0 comments on commit bed2b29

Please sign in to comment.