How do I start a span for aggregate context? #4923
Unanswered
erickskrauch
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Create the span once. Then, for every context, you can assign the existing span to it with https://github.com/open-telemetry/opentelemetry-go/blob/main/trace/context.go#L24 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I am using API with a strict Rate Limit. This API has an endpoint that can be called by passing multiple entities there. I have implemented a request aggregation functionality so that all incoming requests are queued, then grouped and sent (code link).
I would like the outgoing HTTP request to have a span. But I don't understand how I can start 1 span for 10 different contexts. I've seen libraries that allow grouping multiple contexts, but that won't work for otel.
What would be an idiomatic way to implement such a tooling correctly?
Beta Was this translation helpful? Give feedback.
All reactions