Streaming: Tracing for logical groups of IoT data sequences #5640
Unanswered
jrauschenbusch
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Would span links work for you to link the related spans together? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm facing an issue with an IoT stream processing system which receives data from remote sensors. The sensor data is sent in individual sequences (one measurement per HTTP request), but there are logical groups of individual measurements which belong together. We want to have the ability to trace the latency in our system not only on individual requests but also on basis of the logic groups.
So my question is:
Is there a way to aggregate these individual traces into a single trace (artificial root span or anything) or is there an easy way to overwrite the trace id dynamically via a unique identifier for each sequence contained inside the HTTP request?
I'm using the OpenTelemetry Java agent. So basically currently i'm using the auto instrumentation and only the API dependency, but not the SDK dependency. Creating an Agent Extension and a custom IdGenerator seems not to work, as the initialization must be done before e.g. the HTTP request is handled. Maybe the Propagate API is a possibility, to inject a Trace Header before it is evaluated by the Java Agent.
Beta Was this translation helpful? Give feedback.
All reactions