-
Notifications
You must be signed in to change notification settings - Fork 115
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
Prevent collected exceptions from being dropped due to null event values #7301
Merged
schmittjoseph
merged 1 commit into
dotnet:main
from
schmittjoseph:dev/joschmit/fix-exception-event-source-payload
Sep 10, 2024
Merged
Prevent collected exceptions from being dropped due to null event values #7301
schmittjoseph
merged 1 commit into
dotnet:main
from
schmittjoseph:dev/joschmit/fix-exception-event-source-payload
Sep 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jander-msft
approved these changes
Sep 10, 2024
wiktork
approved these changes
Sep 10, 2024
/backport to release/8.0 |
Started backporting to release/8.0: https://github.com/dotnet/dotnet-monitor/actions/runs/10800213525 |
schmittjoseph
added a commit
that referenced
this pull request
Sep 11, 2024
…ues (#7301) (#7302) Co-authored-by: Joe Schmitt <[email protected]>
schmittjoseph
added a commit
that referenced
this pull request
Sep 12, 2024
* Update dependencies from https://github.com/dotnet/diagnostics build 20240906.1 (#7285) [main] Update dependencies from dotnet/diagnostics * Add Docker Compose sample and cross link (#7276) * Update public Linux build machines to Ubuntu 22.04 (#7283) * Update release tool to .NET 8 and update dependencies (#7284) * [main] Bump Swashbuckle.AspNetCore in /eng/dependabot/independent (#7288) Bumps [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 6.7.1 to 6.7.3. - [Release notes](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases) - [Commits](domaindrivendev/Swashbuckle.AspNetCore@v6.7.1...v6.7.3) --- updated-dependencies: - dependency-name: Swashbuckle.AspNetCore dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * generate release notes (#7294) * Update dependencies from https://github.com/dotnet/diagnostics build 20240909.1 (#7295) [main] Update dependencies from dotnet/diagnostics * Update dependencies from https://github.com/dotnet/arcade build 20240909.4 (#7296) [main] Update dependencies from dotnet/arcade * Prevent collected exceptions from being dropped due to null event values (#7301) * Register v9.0.0-rc.1.24453.3 release information (#7303) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update dependencies from https://github.com/dotnet/diagnostics build 20240910.1 (#7304) [main] Update dependencies from dotnet/diagnostics * Update dependencies from https://github.com/dotnet/arcade build 20240910.4 (#7305) [main] Update dependencies from dotnet/arcade * Restore branch-specific files --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Justin Anderson <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joe Schmitt <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
We have a bug in our in-proc exception collection event source code that results in malformed event payloads whenever an exception doesn't have an activity id. This results in the event pipeline processing the exceptions to be unable to parse the data and drop exceptions.
Below describes the issue, covering what the in-proc event source code is doing and then our pipeline.
In-proc flow:
ActivityId
andExceptionMessage
(side note:ExceptionMessage
could never actually be null) when declaring theExceptionInstance
event.PinnedData
with a null value.Event pipeline flow:
ExceptionInstance
event, we calltraceEvent.GetPayload<string>(ExceptionEvents.ExceptionInstancePayloads.{ExceptionMessage,ActivityId})
.The fix:
traceEvent.GetPayload
call to pass in a nullable string (string?
). However upon testing this has no impact on TraceEvent's understanding of the fields. It still treats the field as a non-nullable string and expects a null-terminator. There does not appear to be an affordance for TraceEvent to detect that the string has a null value since it's dynamic length.ActivityId
so we don't have to update that.Release Notes Entry
Fixed an issue that could sometimes result in exceptions not being reported in exception history.