Skip to content

Share Instrumentation's module contextStore across instrumentations modules #1949

@pavolloffay

Description

@pavolloffay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions