Skip to content

Commit

Permalink
Update opentelemetry/src/main/scala/zio/telemetry/opentelemetry/metri…
Browse files Browse the repository at this point in the history
…cs/internal/Instrument.scala

Co-authored-by: Michael Nedokushev <[email protected]>
  • Loading branch information
andrzejressel and grouzen authored Aug 9, 2024
1 parent a9817e1 commit d589e7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ object Instrument {

unit.foreach(builder.setUnit)
description.foreach(builder.setDescription)
boundaries.foreach(seq =>
boundaries.foreach { seq =>
builder.setExplicitBucketBoundariesAdvice(
seq
// ZIO uses explicit Double.MaxValue boundary as upper bound. OTEL uses internal "inf" value instead
.filter(_ != Double.MaxValue)
.map(Double.box)
.asJava
)
)
}

Histogram.double(builder.build(), ctxStorage, logAnnotated)
}
Expand Down

0 comments on commit d589e7e

Please sign in to comment.