-
Notifications
You must be signed in to change notification settings - Fork 991
Description
Is your feature request related to a problem? Please describe.
I would like to store an object to the context store in a module A and access an object from the context store from instrumentation module B.
For instance my apache HC client instrumentation module hooks into HttpEntity.WriteTo()
and puts OutputStream
into a context as a key. Now I would like to access the context store in OutputStreamInstrumentation
and check if the OutputStream
is in the context - if it is instrumentation for write methods puts input into buffer (value from the context).
Describe the solution you'd like
Define context store in instrumentation module A and access it in instrumentation module B
Describe alternatives you've considered
Use a global instance of weak map to share objects/state across instrumentations from different modules.