Getting error when running Auto Instrumentation using OTEL for Java service

100 Views Asked by At

Getting the below when trying to instrument JAVA Services using JAVA OTEL AGENT Error:

[otel.javaagent 2024-01-10 03:02:35:052 +0000] [OkHttp http://localhost:4317/...] WARN io.opentelemetry.exporter.internal.grpc.GrpcExporter - Failed to export spans. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/127.0.0.1:4317
[otel.javaagent 2024-01-10 03:02:55:054 +0000] [OkHttp http://localhost:4317/...]

How can I disable the exporter?

Tried Following environment variable setup

ENV OTEL_AGENT_OPTS="-javaagent:/opentelemetry-javaagent.jar -Dotel.resource.attributes=service.name=schema -Dlogging.level.io.opentelemetry.exporter.logging.*=OFF -Dotel.metrics.exporter=none -Dotel.spans.exporter=none -Dotel.instrumentation.grpc.enabled=false"

But nothing worked.

0

There are 0 best solutions below