javaagent出现Failed to export metrics

日志报错

springboot 使用 -javaagent:opentelemetry-javaagent.jar 整合 jaeger服务后,出现以下问题日志:

[otel.javaagent 2022-11-18 08:29:38:570 +0000] [OkHttp http://localhost:4317/...] ERROR io.opentelemetry.exporter.internal.grpc.OkHttpGrpcExporter - Failed to export metrics. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317
原因

OpenTelemetry 默认配置 otel.metrics.exporter=otlp (default), 因此 javaagent 默认会往 http://localhost:4317 推送 metrics 指标。

解决

设置 otel.metrics.exporter=none 或 环境变量OTEL_METRICS_EXPORTER=none

你可能感兴趣的:(javaagent出现Failed to export metrics)