Skip to content

Provide a simple way to disable WebClient instrumentation #1717

@asibross

Description

@asibross

I am looking to disable the TraceWebClientBeanPostProcessor since I have my own simple brave instrumentation for WebClient.

I cannot just exclude it because it is being created in a nested configuration in TraceWebClientAutoConfiguration and the TraceWebClientAutoConfiguration is also in charge of providing other instrumentations (RestTemplate) that I don't want to exclude.

I had to implement a BeanDefinitionRegistryPostProcessor to remove it, but would have preferred to set a property, or add the AutoConfiguration to the exclude list.

I think adding a @ConditionalOnProperty on the nested configuration will suffice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions