OpenTelemetry is a set of APIs, SDKs and other components (like the OpenTelemetry Collector or Operator) designed for the generation of high-quality telemetry data (traces, metrics, and logs) from cloud-native software. This tag is suitable for questions about operating OpenTelemetry components (such as the collector), instrumenting software or libraries to take advantage of it, or questions about writing new OpenTelemetry components.
Questions tagged [open-telemetry]
838 questions
5
votes
1 answer
Distributed tracing using Jaeger with correct hierarchy
I am new to Jaeger and I would like to use it in order to record traces for my microservices.
I create traces from my μservices, providing the traceId publish them as messages and consume them in another service in order to export the trace to…

Giorgos Ntymenos
- 361
- 2
- 13
5
votes
1 answer
Partial succes on opentelemtry exporter in golang
I'm running a pod of open telemetry collector that is exposed to port 4318 (running node js demo working perfectly)
but running this basic code sample (which basically just running a simple program after initiating the Tracer and sending…

Aviram7168
- 61
- 2
5
votes
4 answers
5
votes
1 answer
Activity Opentelemetry tracing .Net Core remote service
I have multiple web services which connect via SignalR to a set of remote .Net Core applications, which allows them to receive messages via the SignalR channel.
The messages contain a data structure which contains a Trace ID which is set on the web…

KeithMac
- 111
- 7
5
votes
3 answers
OpenTelemetry API vs SDK
I'm confused as why OpenTelemetry documentaion has OpenTelemetry Python API and OpenTelemetry Python SDK.
Like when using the specification in python when we should consider pip install opentelemetry-api over pip install opentelemetry-sdk

user5319825
- 491
- 1
- 6
- 16
5
votes
0 answers
Filtering out specific http api calls from open telemetry java agent instrumentation
I'm using the open telemetry java agent as documented here to instrument a Java Spring Boot application and export the traces to Google Cloud Trace.
My command is :
java \
-javaagent:/opentelemetry/opentelemetry-javaagent.jar \
…

singe3
- 2,065
- 4
- 30
- 48
5
votes
0 answers
ActivitySource.StartActivity returns null as if there is no listeners even though console listener is defined
The code uses Console Trace Provider. However, In the function static void MakeActivity(string name),
The line ActivitySource.startActivity returns a null. How can i fix it?
The examples on google have the "using" keyword which i cannot apply with…

junkone
- 1,427
- 1
- 20
- 45
5
votes
1 answer
How to create opentelemetry span from a string traceid
I understand that we're to use context propagation to get the parent traceids and spans created as children of each other, but my publisher is using headers (nats not http)
My message broker uses headers, which i'm setting a traceid and spanid as…

SuperSecretAndNotSafeFromWork
- 1,211
- 1
- 16
- 31
5
votes
2 answers
OpenTelemetry Python - How to instanciate a new span as a child span for a given trace_id
My goal is to perform tracing of the whole process of my application through several component. I am using GCP and Pub/Sub message queue to communicate information between components (developped in Python).
I am currently trying to keep the same…

Clement Bouthors
- 53
- 1
- 4
5
votes
1 answer
AWS X-Ray not initializing a new segment
I'm using OpenTelemetry with AWS X-Ray to trace E2E messaging between:
Producer (JVM) -> Kafka Broker -> Consumers (Multiple, Python-based)
Generated traces are then send to AWS OTEL Collector which forwards them to AWS X-Ray.
However when I see…

Yayotrón
- 1,759
- 16
- 27
5
votes
1 answer
How to do trace propagation with nested spans across services using Opentelemtry in python?
I am using opentelemetry api and sdk version 1.0.0 in python and Jaeger to see traces.
I have two services that communicates between each other and I can see traces for each service individually on Jaeger but spans are not nested (while they…

Constantin De La Roche
- 2,530
- 23
- 24
5
votes
1 answer
Wrong aws request signature caused by opentelemetry https plugin
When using the @opentelemetry/plugin-https and the aws-sdk together in a NodeJS application, the opentelemetry plugin adds the traceparent header to each AWS request. This works fine if there is no need for retries in the aws-sdk. When the aws-sdk…

Tsvetan Milanov
- 61
- 5
4
votes
1 answer
OpenTelemetry Scope vs. spanBuilder.startSpan() and span.end()
When using the OTel Java API, manually instrumented code typically looks like the following:
@Inject
Tracer tracer;
public String instrumentedMethod() {
// ...
Span span = tracer.spanBuilder("interesting operation").startSpan();
…

Johann Heinzelreiter
- 759
- 2
- 7
- 16
4
votes
0 answers
How to use opentelemetry logs in javascript(nodejs)
I am trying to understand how to use and send logs using opentelemetry but find it is confusing. Suppose I am developing an application(preferable using javascript) and want to log things in the app and send the logs to a backend(e.g. azure…

bunny
- 1,797
- 8
- 29
- 58
4
votes
1 answer
How to pass remote parent span properly using NATS?
I have a dummy example on this repo
I tried to pass current span context to a remote one so it would show the trace properly, what I've done:
go func() {
_, span := otel.Tracer("natsC").Start(context.Background(), "publish")
defer…

Kokizzu
- 24,974
- 37
- 137
- 233