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

fix: missing error_message when reporting client's unknown error #94

Merged

Conversation

duyhungtnn
Copy link
Collaborator

This PR will fix the missing error_message when reporting an unknown error from SDK code (it is different case with unknown error from the server API)

@duyhungtnn duyhungtnn self-assigned this Oct 22, 2024
@duyhungtnn duyhungtnn requested a review from cre8ivejp October 22, 2024 07:47
@duyhungtnn duyhungtnn marked this pull request as ready for review October 22, 2024 07:52
metricsEventData = .unknownError(
.init(
apiId: apiId,
labels: labels.merging(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the tag is also missing in the metric event labels.
Can you confirm?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tag is inserted here

and we are using merging() to merge new changes to the input map

Copy link
Member

@cre8ivejp cre8ivejp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cre8ivejp cre8ivejp merged commit a0e47b1 into main Nov 1, 2024
7 checks passed
@cre8ivejp cre8ivejp deleted the fix/missing-error-message-when-reporting-unknown-error branch November 1, 2024 02: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