I am trying to enable opentelemetry for one of our SpringBoot services. I was able to invoke it by adding the below to the build.gradle
implementation 'io.opentelemetry:opentelemetry-bom:1.39.0'
implementation 'io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.5.0-alpha'
However, i am getting an error trying to connect to the Jaeger instance:
io.opentelemetry.sdk.internal.ThrottlingLogger doLog SEVERE: Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4318
I have tried to specify the following settings in the configmap of the service
OTEL_TRACES_SAMPLER_ARG: "1"
OTEL_TRACES_SAMPLER: "parentbased_traceidratio"
OTEL_RESOURCE_ATTRIBUTES: service.name=myservice,service.version=1.0.0
OTEL_TRACES_EXPORTER: otlp
OTEL_METRICS_EXPORTER: otlp
OTEL_LOGS_EXPORTER: otlp
OTEL_EXPORTER_OTLP_COMPRESSION: gzip
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger-collector.default:4317
but i still get the same error "Failed to connect to localhost/127.0.0.1:4318"
. Looks like the OTEL_EXPORTER_OTLP_ENDPOINT is not taken into consideration.
Any idea how to address this issue?
Thanks in advance!
SG
5