Splunk Observability Cloud

Why getting 401 error while sending Spans to SignalFx(Splunk Observability as a cloud)?

glingaraj
Engager

Hi Team,

I have created a trial account in Splunk Observability as a cloud for checking traces and spans. While trying to send spans from an Java based application from EC2 instance(Personal account) using Java agent, I am getting 401 unauthorized error. Have verified creating API tokens as per the documentation but still getting same error. 

Can you please help in suggesting way forward for this issue?

Links referred:

https://docs.splunk.com/Observability/gdi/get-data-in/application/java/instrumentation/instrument-ja...

(Referred topic "Send data directly to Observability Cloud") in above Link

https://docs.splunk.com/Observability/gdi/get-data-in/application/java/troubleshooting/common-java-t...

https://docs.splunk.com/Observability/admin/authentication-tokens/api-access-tokens.html#admin-api-a...

Error:

[otel.javaagent 2022-07-15 01:57:56:036 +0000] [BatchSpanProcessor_WorkerThread-1] WARN io.opentelemetry.exporter.jaeger.thrift.JaegerTh
riftSpanExporter - Failed to export spans
io.jaegertracing.internal.exceptions.SenderException: Could not send 72 spans, response 401:
at io.jaegertracing.thrift.internal.senders.HttpSender.send(HttpSender.java:87)
at io.opentelemetry.exporter.jaeger.thrift.JaegerThriftSpanExporter.lambda$export$2(JaegerThriftSpanExporter.java:99)
at java.util.HashMap.forEach(HashMap.java:1290)
at io.opentelemetry.exporter.jaeger.thrift.JaegerThriftSpanExporter.export(JaegerThriftSpanExporter.java:93)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.exportCurrentBatch(BatchSpanProcessor.java:326)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.run(BatchSpanProcessor.java:244)
at java.lang.Thread.run(Thread.java:748)

 

Tags (2)

mlambertzp
Engager

Did you find the root cause or a solution to this issue?

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...