You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(server): configure endpoint for OpenTelemetry exporters (#1664)
Previously, the OpenTelemetry metric and log record exporters were
initialized without specifying an endpoint. This change sets the
endpoint configuration for both exporters to ensure they communicate
with the correct server.
Without this change, the default endpoint is `localhost`, which won't
resolve and thus part of the payload won't be published. This leads to a
complete failure of metric/telemetry publishing, and it's the reason
why many metrics are not making their way into Jaeger.
Making the change and running the docker repository locally proved to me
that no more errors were showing up in the log. Next step is bringing
it to production
Copy file name to clipboardExpand all lines: jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver/OpenTelemetryConfig.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,8 @@ internal fun buildOpenTelemetryConfig(
41
41
.setTimeout(30, TimeUnit.SECONDS)
42
42
.build()
43
43
44
-
val metricExporter =OtlpGrpcMetricExporter.builder().build()
45
-
val recordExporter =OtlpGrpcLogRecordExporter.builder().build()
44
+
val metricExporter =OtlpGrpcMetricExporter.builder().setEndpoint(endpointConfig).build()
45
+
val recordExporter =OtlpGrpcLogRecordExporter.builder().setEndpoint(endpointConfig).build()
0 commit comments