-
Notifications
You must be signed in to change notification settings - Fork 55
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
OpenTelemetry: add ability to set StatusCode in errorMapper based on A #702
Conversation
ISSUE #698 |
@grouzen, Hi. When I added A in aspects compiler throws error but If I set types as in PR it works, but it is not convenient. May be you know how it fix ? |
@IvanFinochenko Thanks for the contribution! |
I'm letting you know that I'm playing with the different versions of the ErrorMapper interface because we need to re-imagine it, considering these new requirements. We need to make it straightforward for the end user, and the current one looks messy and non-systematic. |
@IvanFinochenko Hey!
Also, I think we might want to rename the What do you think? |
@grouzen Hi |
In my understanding, we don't need to call |
@IvanFinochenko Also, I think it would be better to return a case class instead of a tuple as a result for both (failure and success) cases. We can make a type of the second field abstract:
It has two benefits:
|
@grouzen What do we do with String in Successful part? Set description in span.setStatus(errorStatus, description) ? |
Yes |
@IvanFinochenko Hey! How is it going? Do you need any help with it? |
@grouzen I updated PR |
@IvanFinochenko Please, resolve the conflict. Also, |
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.
Fix conflicts, please.
# Conflicts: # opentelemetry/src/main/scala/zio/telemetry/opentelemetry/tracing/Tracing.scala
@grouzen I fixed |
@grouzen In build strange error. Can you check please ? |
Yeah, I noticed this kind of error a couple of days ago it is not relevant to the main code base so we can forcibly merge the PR, don't worry about it. |
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.
LGTM! Thanks for the contribution!
No description provided.