-
Notifications
You must be signed in to change notification settings - Fork 114
Context propagation using thread local storage #97
Comments
+1 |
Very much interested in seeing this feature, I've been using a tracing library at my workplace which was loosely based on OpenTracing and had this feature, and was surprised to see it absent in OpenTracing itself. It provides the easiest way to enable existing libraries to add tracing/carrier support without having to change their public APIs. |
I'd like to try and tackle this using the ScopeManager approach in the Java version: This requires mutable access to the span. Since this is not explicitly a requirement of the Tracer but more like a utility, I'm thinking of keeping this outside of the Tracer interface as currently done in the Java implementation, but this can easily be added later. The ScopeManager will guarantee thread local semantics and therefore not have any thread safety concerns. I'll create a WIP PR shortly with a suggested interface prior to any implementation. |
Hello everyone
In OpenTracing tutorial for Java the Scope operator and startActive function is used to propagate trace context using thread local storage.
Is there any equivalent function in cpp-client?
Regards
Mania
The text was updated successfully, but these errors were encountered: