Skip to content

Refactor trace header parsing logic#1876

Merged
cleptric merged 2 commits into
masterfrom
merge-context-logic
Aug 11, 2025
Merged

Refactor trace header parsing logic#1876
cleptric merged 2 commits into
masterfrom
merge-context-logic

Conversation

@cleptric
Copy link
Copy Markdown
Member

@cleptric cleptric commented Aug 11, 2025

A bit overdue to clean this up.

Comment thread phpstan-baseline.neon
Comment on lines +313 to +317
-
message: "#^Property Sentry\\\\Tracing\\\\PropagationContext\\:\\:\\$parentSampled is never read, only written\\.$#"
count: 1
path: src/Tracing/PropagationContext.php

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't find an elegant way to fix this

@cleptric cleptric self-assigned this Aug 11, 2025
@cleptric cleptric requested a review from stayallive August 11, 2025 08:53
@cleptric cleptric marked this pull request as ready for review August 11, 2025 08:53
@cleptric cleptric requested a review from Litarnus August 11, 2025 08:54
@Litarnus
Copy link
Copy Markdown
Contributor

Litarnus commented Aug 11, 2025

Can we use it somewhere else too? If not it might be more explicit to have a regular class instead of a Trait

@cleptric
Copy link
Copy Markdown
Member Author

cleptric commented Aug 11, 2025

We use it in two places. Kinda want to avoid sub-classing. Though we could also make it static tbh.

@cleptric cleptric marked this pull request as draft August 11, 2025 11:12
@cleptric
Copy link
Copy Markdown
Member Author

Ahh, nvm, we can't.

@cleptric cleptric marked this pull request as ready for review August 11, 2025 11:27
@cleptric cleptric merged commit a9ada24 into master Aug 11, 2025
39 checks passed
@cleptric cleptric deleted the merge-context-logic branch August 11, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants