Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed Aug 4, 2023
1 parent 59b2f88 commit 4fd1ab0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ private[otel] class OtlpMetricsService(c: OpenTelemetryConfiguration) extends Me
private val compressionMethod = if (c.compressionEnabled) "gzip" else "none"
private val delegate: MetricExporter = c.protocol match {
case "grpc" =>
val builder = OtlpHttpMetricExporter.builder().setEndpoint(c.endpoint).setCompression(compressionMethod).setTimeout(c.timeout)
val builder = OtlpGrpcMetricExporter.builder().setEndpoint(c.endpoint).setCompression(compressionMethod).setTimeout(c.timeout)
c.headers.foreach { case (k, v) => builder.addHeader(k, v) }
builder.build()
case "http/protobuf" =>
val builder = OtlpGrpcMetricExporter.builder().setEndpoint(c.endpoint).setCompression(compressionMethod).setTimeout(c.timeout)
val builder = OtlpHttpMetricExporter.builder().setEndpoint(c.endpoint).setCompression(compressionMethod).setTimeout(c.timeout)
c.headers.foreach { case (k, v) => builder.addHeader(k, v) }
builder.build()
}
Expand Down

0 comments on commit 4fd1ab0

Please sign in to comment.