Closed natikgadzhi closed 8 months ago
Merging #2179 (2a9fa67) into master (c4e4797) will decrease coverage by
0.03%
. The diff coverage is100.00%
.
@st0012 if you feel like reviewing another one, this should be a quick and clean one.
Yep, I might be wrong here. Because the request env vars were already respected, and the OS environment vars for this seem a little bit off to me.
Summary
This pull request is part 3 of https://github.com/getsentry/sentry-ruby/issues/2056. It adds support for continuing traces by passing
SENTRY_TRACE
andSENTRY_BAGGAGE
environment variables.Closes #2099.
Changes
Baggage.from_header
to beBaggage.from_baggage_string
and ditto for traces, just for readability.Reviewing
I'm new to distributed tracing, and Sentry implementation in particular, so I might need more handholding with the next few PRs.
In #2056:
In my current implementation, if the trace string was not passed in headers otherwise,
PropagationContext
will try and read the environment variable. It does NOT check whether Sentry Performance is enabled. Is that correct?/cc @sl0thentr0py