-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix OTEL Exception Message Propagation #341
Conversation
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.
// SetErrorMessage is a modelpb.BatchProcessor that sets the APMEvent.Message
// field for error events.
Have you figured out why it was implemented like that in the first place? If it is a bug, do you mind updating the comment as well?
@carsonip thanks for pushing me to investigate. I assumed it was a know bug. My thinking was that the error message should be in @kruskall if I'm not mistaken, you added this comment, can you maybe elaborate on this please? |
Hey @rubvs 👋 The comment was added in this PR (along with the file): 9b6fe76 Historically those processors lived in https://github.com/elastic/apm-server/. Specifically the It was added by this PR: elastic/apm-server#5974 The original issue mentioned in the PR is at elastic/apm-server#5971. Based on the issue description I guess setting Looking at the codebase, the event message should be correctly set at Line 140 in 81d7764
Could you try to comment out the cc @axw since you opened the original issue/PR. |
Thanks for the ping @kruskall I think The point of setting the Perhaps the simplest thing to do would be to change |
0522131
to
3c951b0
Compare
3c951b0
to
c8a9e88
Compare
c8a9e88
to
4c9bd81
Compare
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.
Thanks! I think we should probably remove the expectedLogMessage
and expectedExceptionMessage
bits, but otherwise LGTM.
4c9bd81
to
1b5ee67
Compare
Fix on Issue 13603
The issue is reproduced by:
apm-server
locally.sendotlp
.apm-server/systemtest/cmd/sendotlp
apm-server
once this PR is approvedThe issue is fixed by:
apm-data
toapm-server
cd apm-server
go mod edit -replace=github.com/elastic/apm-data=../apm-data
make update