fix: exception recording for Symfony sub-requests in instrumentation#569
Open
jvdlaar wants to merge 2 commits into
Open
fix: exception recording for Symfony sub-requests in instrumentation#569jvdlaar wants to merge 2 commits into
jvdlaar wants to merge 2 commits into
Conversation
|
Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one. |
|
|
Author
|
Here is an otel output to show the output in the otel collector: |
Author
|
Improved the traces a little bit such that it now also has a status on the first span: I just can't seem to get a status message on the spans. It adds it in the handleThrowable, but subsequently throws it away in the terminate. |
This file contains hidden or 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
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.
Fixes open-telemetry/opentelemetry-php#1844
Based on #494 but then with a test.
I wasn't able to install the dependencies locally so I made some changes there. Also the version in the previous PR wasn't really working for me either as the tests kept failing.
I added a test with claude as I'm not really familiar with the internals of Symfony. I'm adding this version to our own codebase to verify it in production for a couple of days. So I'll report on the success of that soon.