question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose isSampled() in TraceContext

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marcingrzejszczakcommented, Dec 10, 2020

Makes perfect sense!

0reactions
phxqlcommented, Dec 10, 2020

Perfect, many thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found