Skip to content

Ability to customize InstrumenterBuilders in distros #6651

@trask

Description

@trask

Minimally I'd like to be able to register a global context customizer for all Instrumenters. I don't think I have a preference whether it runs first or after the other context customizers.

I really only need to apply it to http server instrumenters, but don't mind if I need to do that checking inside the context customizer based on presence of http.target attribute.

Wondering if there are other similar use cases and we should generalize somehow, or whether I should just propose a simple global context customizer for now.

It would be nice if it applied to instrumenter-api in the user space as well. In this way, it becomes somewhat similar to a SpanProcessor, as long as people are using the instrumenter-api.

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