sentry-rust
sentry-rust copied to clipboard
feat(sentry-core): add support for w3c traceparent
trafficstars
This change does two things:
- Add a function to allow creating a
TransactionContextwith a custom Trace ID without a parent span ID. My company is testing traces on Sentry in parallel to our current trace solution, for ease of use, we'd like to keep using the same trace ID on both platforms for now. Currently, my approach is to create asentry-traceheader with a zeroed span ID, but the UI has this bright red alert telling me that the parent span ID is invalid, and this is bugging me. I doubt I'm the only one who has faced this issue before. - Implements support for the
traceparentas stated in getsentry/team-sdks#41.sentry-tracestill takes precedence. It does not emit the header, though. Should it? It only allows for parsing for now.