Skip to content

Spring webclient instrumentation #1640

@konjp

Description

@konjp

We have project where we using java 11, spring boot(webclient/webflux/netty), Application insights agent 3.0.3.

If we specify custom traceparent header in webclient, auto-instrumentation from application insights agent appends additional value to traceparent header:
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-b9c7c989f97918e1-01, 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01 .

Is this expected behavior? Problem with this that service which is called by webclient now returns 400, because traceparent header is invalid.

@PavelKhatsimtsau I can see that you managed to disable webclient instrumentation with "otel.instrumentation.spring.webflux.client.enabled=false", but we could not to disable it, we still see instrumentation in application insights. Is there some additional things that needs to be done to disable this instrumentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions