-
-
Notifications
You must be signed in to change notification settings - Fork 462
Merge master changes #1988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge master changes #1988
Conversation
Co-authored-by: Michi Hoffmann <cleptric@users.noreply.github.com>
…andler (#1931) Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
Co-authored-by: Martin Linzmayer <martin.linzmayer@sentry.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#1972) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Hoffmann <michi@sentry.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# Conflicts: # composer.json # phpstan-baseline.neon # psalm.xml.dist # src/Event.php # src/EventType.php # src/Metrics/Metrics.php # src/Options.php # src/Tracing/Span.php # src/Unit.php # src/functions.php # tests/Metrics/MetricsTest.php # tests/OptionsTest.php # tests/Serializer/PayloadSerializerTest.php # tests/Serializer/SerializerTest.php
c9de2a6 to
c921f00
Compare
| } | ||
|
|
||
| return $this; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Span flag updates blocked after reaching max limit
The setFlag method blocks all flag operations once MAX_FLAGS (10) is reached, including updates to existing flags. The condition count($this->flags) < self::MAX_FLAGS prevents both new flags AND updates to existing ones when the limit is hit. If a flag was added early and needs its value changed later after 10 flags exist, the update is silently ignored. The check doesn't account for whether the key already exists in the array, where an update wouldn't increase the count.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is also IIRC to spec!
No description provided.