Skip to content
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

[FEATURE] [MER-2904] Add missing error logging for activity editing error #4569

Conversation

simonchoxx
Copy link
Contributor

@simonchoxx simonchoxx commented Jan 18, 2024

MER-2904

This PR aims to get and send a more accurate error message to AppSignal if an error occurs in the execution flow when editing an activity.

After analyzing the code, and trying to force all the errors that can happen in this flow, I found that it can be sent in the send_error function of the AppSignal module, as metadata a tuple, but the function Appsignal.Span.set_attribute does not allow this type of data (only allows data types such as String, integer, boolean or float), so I think it would not be receiving correctly.

https://hexdocs.pm/appsignal/2.7.10/Appsignal.Span.html#set_attribute/3

Feel free to add any comments in order to get better options for logging errors in AppSignal in a more efficient and clear way.

@darrensiegel darrensiegel merged commit 0aef9fc into hotfix-v0.26.1 Jan 18, 2024
5 checks passed
@darrensiegel darrensiegel deleted the feature/MER-2904-add-missing-error-logging-for-activity-editing-error branch January 18, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants