Skip to content

Commit

Permalink
Use new API for trace propagation headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddeus committed Aug 10, 2024
1 parent 260a1d1 commit 5a6e07b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/cache-machine.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ async function updateCache(env, query, variables, body, ttl = '', specialCache =
headers: {
'content-type': 'application/json;charset=UTF-8',
'Authorization': `Basic ${env.CACHE_BASIC_AUTH}`,
'sentry-trace': Sentry.getCurrentHub().getScope().getSpan().toTraceparent(),
'baggage': Sentry.getCurrentHub().getScope().getSpan().toBaggageHeader()
'sentry-trace': Sentry.spanToTraceHeader(Sentry.getActiveSpan()),
'baggage': Sentry.spanToBaggageHeader(Sentry.getActiveSpan()),
},
timeout: 10000,
};
Expand Down

0 comments on commit 5a6e07b

Please sign in to comment.