Skip to content

ref(tracing): Read trace_propagation_targets once in GuzzleTracingMiddleware to drop Mago baseline entry - #2422

Merged
stayallive merged 1 commit into
masterfrom
ref/guzzle-middleware-trace-propagation-targets-local
Nov 24, 2026
Merged

stayallive merged 1 commit into
masterfrom
ref/guzzle-middleware-trace-propagation-targets-local

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Removes this Mago baseline entry from analysis-baseline.toml:

shouldAttachTracingHeaders() called Options::getTracePropagationTargets() twice: once for the null check and once for in_array(), so Mago couldn't narrow the second call. It now reads the option into a local variable once and uses that for both. The getter has no side effects, so behavior doesn't change.

via automation sched_a59acc45df166a80a839d0b32321e740 · Run ID sched_a59acc45df166a80a839d0b32321e740:1795510800000.

--

View Session [Sentry]

@stayallive
stayallive marked this pull request as ready for review November 24, 2026 10:18
@stayallive
stayallive requested a review from a team as a code owner November 24, 2026 10:18
@stayallive
stayallive merged commit 6bcc0d3 into master Nov 24, 2026
59 checks passed
@stayallive
stayallive deleted the ref/guzzle-middleware-trace-propagation-targets-local branch November 24, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant