Skip to content

Allow adding custom conditions to Instrumenter#shouldStart()Β #4389

@mateuszrzeszutek

Description

@mateuszrzeszutek

Is your feature request related to a problem? Please describe.
Currently there is no way to embed some additional conditions into the Instrumenter#shouldStart() method. There are several instrumentations that have additional checks (netty-4.1 client, jaxrs-1.1, cxf, ...)

Describe the solution you'd like
We could add an additional interface that accepts (REQUEST, Context) and returns a boolean - and add a new configuration knob for it to the InstrumenterBuilder.

Describe alternatives you've considered
Leave the code in those instrumentations as it is.

Additional context
#4381 (comment)

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