refactor: prometheus attributes format to otel attributes#4188
refactor: prometheus attributes format to otel attributes#4188adamw merged 12 commits intosoftwaremill:masterfrom
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.
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.
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