Skip to content

Trace context lost after mongo call #1204

@beltram

Description

@beltram

Bug report
Hi, using latest Spring versions (2.1.2.RELEASE and Cloud Greenwich.RELEASE) it looks like after calling mongo with reactive operators trace context is resetted (ie one cannot get back traceId). If mongo is not called it works as expected.
It looks like this:

tracer.spanId() // has a value
    .flatMap { repo.insert(Person(it)) }
    .flatMap { tracer.spanId() } // is null

Reproducer is here
Thank you 😄

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