Skip to content

Commit bc477ac

Browse files
committed
feat(native): update sentry-trace header format
1 parent 5ca87a3 commit bc477ac

File tree

1 file changed

+3
-1
lines changed
  • platform-includes/distributed-tracing/custom-instrumentation

1 file changed

+3
-1
lines changed

platform-includes/distributed-tracing/custom-instrumentation/native.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ To create a transaction as a continuation of a trace retrieved from an upstream
3636
sentry_transaction_context_update_from_header(
3737
tx_ctx,
3838
"sentry-trace",
39-
"atraceid-aspanid-issampled"
39+
"41c74c2ea9f2bfb184f86939de5b97aa-399b3e5cc8b83494-1"
4040
);
4141
4242
```
43+
44+
The format of the `sentry-trace` header should follow the one defined in [the telemetry docs](https://develop.sentry.dev/sdk/telemetry/traces/#header-sentry-trace). It should consist of a 32 character hexadecimal string for the `traceId`, followed by a 16 character hexadecimal string for the `spanId` and an optional single character for the `sampled` flag.

0 commit comments

Comments
 (0)