Expose isSampled() in TraceContext
See original GitHub issueIs 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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
3.0.0-RC1 Milestone - GitHub
Expose isSampled() in TraceContext enhancement. #1799 by phxql was closed on Dec 10, 2020. 6 · Spring Boot application does not start with ......
Read more >Trace Context - W3C
This specification defines standard HTTP headers and a value format to propagate context information that enables distributed tracing scenarios.
Read more >Spring Cloud Sleuth
@Autowired Tracing tracing; // configure a function that injects a trace context into a request injector = tracing.propagation().injector(Request.
Read more >brave.propagation.TraceContext java code examples - Tabnine
TraceContext (Showing top 20 results out of 315) ... spanId()); bytes[27] = TRACE_OPTION_FIELD_ID; if (traceContext.sampled() != null ... isSampled(context.
Read more >TraceContext (Brave 5.1.2 API) - Javadoc.io
Unlike these mentioned, this type does not expose a single binary representation. ... Like parentId() except returns a primitive where zero implies absent....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Makes perfect sense!
Perfect, many thanks!