Skip to content

Expose isSampled() in TraceContext #1799

Closed
@phxql

Description

@phxql

Is your feature request related to a problem? Please describe.
I'm trying to log a JSON field "sampled": true when the current trace is sampled.

Describe the solution you'd like
It would be great if org.springframework.cloud.sleuth.TraceContext could expose the isSampled() Method found in BraveTraceContext.

Describe alternatives you've considered
Im 3.0.0-M5 i casted the TraceContext to BraveTraceContext but this is no longer possible, as BraveTraceContext is now package protected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions