-
Notifications
You must be signed in to change notification settings - Fork 422
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
refactor: prometheus attributes format to otel attributes #4188
refactor: prometheus attributes format to otel attributes #4188
Conversation
6c54a03
to
50cb4f7
Compare
Excludes error.type for successful responses by setting it to an empty string ("") and filtering it out during attribute collection. |
@adamw Can have a review on it? |
4e13068
to
8e5c041
Compare
Hm I think we agreed that for optional labels, we should use Scala's |
8e5c041
to
a3ebd6c
Compare
@adamw Done! Can you approve workflows? |
I completely forgot the existence of |
l.forResponse.map(label => zio.metrics.MetricLabel(label._1, label._2(res))) ++ | ||
phase.map(v => MetricLabel(l.forResponsePhase.name, v)) | ||
}.toSet | ||
val responseLabels = l.forResponse.map { case (key, valueFn) => |
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.
Does we need to account Option[String]
for Zio Metrics ig it may account for other metrics too?
Or better strategy to move this logic to OpenTelemetry module and introduce option labels than affecting other modules
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.
that's fine, let's just have optional labels. This might be useful for ZIO as well
Thanks for your work! |
/claim #4057
Closes #4057