Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement setParent() for SimpleTracer, implement assertions for parentId #676

Conversation

jamesmoessis
Copy link
Contributor

Fixes #675

I've also added assertions for parent ID since they didn't exist before, and it was useful for testing the change to SimpleTracer.

SimpleTracer simpleTracer = new SimpleTracer();
SimpleSpanBuilder builder = new SimpleSpanBuilder(simpleTracer);
SimpleTraceContextBuilder ctxBuilder = new SimpleTraceContextBuilder();
TraceContext parentCtx = ctxBuilder.spanId("spam").traceId("bar").sampled(true).build();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"span" or "spam"? :D

Copy link
Member

@jonatan-ivanov jonatan-ivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I accidentally submitted my previous review with approve, what I meant is "Request changes".

@jonatan-ivanov jonatan-ivanov added this to the 1.3.0 milestone Apr 22, 2024
@jonatan-ivanov jonatan-ivanov removed this from the 1.3.0 milestone Apr 23, 2024
@jamesmoessis
Copy link
Contributor Author

@jonatan-ivanov any more notes for this one?

@jonatan-ivanov jonatan-ivanov merged commit 5b59ed7 into micrometer-metrics:main May 13, 2024
5 checks passed
@jonatan-ivanov
Copy link
Member

@jamesmoessis Thank you for the PR!

@jamesmoessis jamesmoessis deleted the jmoe/fix-simple-tracer-parent-context branch May 13, 2024 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SimpleTracer setParent and setNoParent don't do anything
4 participants