Replies: 2 comments 10 replies
-
Hey @woldie ,
It points to the official OpenTelemetry Java docs page that described how to use OpenTelemetry API in detail.
They're both correct: if you want to add custom attributes or spans, you need to manually instrument your application - AND manual instrumentation is fully supported by Splunk. |
Beta Was this translation helpful? Give feedback.
-
Hi Team, For example, there is a flag variable "OTEL_JAVAAGENT_ENABLED" used by the Splunk OTEL library and I have stored this value to "true" in Kubernetes.yaml file. So by this config OTEL jar is able to access it. Is there any alternate way to store the splunk_access_token apart from Kubernetes.yaml or properties file? |
Beta Was this translation helpful? Give feedback.
-
I am auto-instrumenting with the splunk-otel-agent 1.2, and I'd like to create custom spans using the same Tracer as the one the agent uses. I am currently attempting to acquire the Tracer with API 1.4.1 running on OpenJDK 11:
And I am trying to create custom spans with
(I have also tried SpanKind.INTERNAL and left setSpanKind() off of the expression, but it made no difference)
Unfortunately, my custom spans are not traced, and only the auto-instrumented spans the agent creates show up in my traces in SignalFX. I am calling Span#end on all my custom spans.
This link referenced in another similar answer is no longer relevant: https://github.com/open-telemetry/opentelemetry-java/blob/main/QUICKSTART.md#tracing
So, I would like to know the following given the latest and greatest splunk-otel-agent:
Thanks!
EDIT 1: I see two conflicting comments in the splunk-otel documentation. At this link, https://docs.splunk.com/Observability/gdi/get-data-in/application/java/instrumentation/instrument-java-application.html there is a note that reads:
but on the "Manually instrument Java applications" page, a note reads:
So which is it?
Beta Was this translation helpful? Give feedback.
All reactions