Skip to content

Commit

Permalink
Remove broken trace propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddeus committed Aug 10, 2024
1 parent 5a6e07b commit 4277ca2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/cache-machine.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ 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.spanToTraceHeader(Sentry.getActiveSpan()),
'baggage': Sentry.spanToBaggageHeader(Sentry.getActiveSpan()),
// Spans don't appear to be propagating properly through the graphql server from the http server :(
// This might be because they are two distinct node packages
//'sentry-trace': Sentry.spanToTraceHeader(Sentry.getActiveSpan()),
//'baggage': Sentry.spanToBaggageHeader(Sentry.getActiveSpan()),
},
timeout: 10000,
};
Expand Down

0 comments on commit 4277ca2

Please sign in to comment.