Skip to content

tracer.start_span() not working with_parent #1363

Answered by arielvalentin
ToolKami asked this question in Q&A
Discussion options

You must be logged in to vote

@ToolKami Based on the code snippets it does not look like you are setting a parent span ID or the Sampling flag.

Without a parent span id you will not be able to properly link the child span and the sampling flag is "off" by default:

https://github.com/open-telemetry/opentelemetry-ruby/blob/main/api/lib/opentelemetry/trace/span_context.rb#L27

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ToolKami
Comment options

Answer selected by ToolKami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1362 on August 21, 2022 17:57.