Skip to content

SpanId changes on WebClient request #1423

@gabriel-cardenete-movile

Description

I am doing a simple HTTP request with WebClient, and the spanId is changing.
I noticed that this doesn't happen in Finchley.RELEASE, but is happening on Greenwich.SR2

I have the following code:

restTemplate.getForObject(
        "https://github.com",
        String::class.java
)

logger.info("no spanId changes")

webClient.get()
        .uri("https://github.com")
        .retrieve()
        .bodyToMono(String::class.java)
        .block()

logger.info("spanId changed!")

Example output:

[c177ebd3831cc307-c177ebd3831cc307] no spanId changes
[c177ebd3831cc307-bcdfe282f4b59a0c] spanId changed!

Full project: https://github.com/gabriel-cardenete-movile/sleuth-webclient-problem

Am I doing something wrong here?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions