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

Question: why we use spanId and rootSpanId to correlate profiles with traces #8159

Open
steverao opened this issue Jan 6, 2025 · 0 comments

Comments

@steverao
Copy link

steverao commented Jan 6, 2025

Hi everyone!

I have a question about the profile module in the codebase. Specifically, I would like to understand why we use spanId and rootSpanId to correlate profiles with traces in Datadog's dd-trace-java repository.

In my opinion, there are several approaches to correlating profiles with traces:

  1. Use traceId and spanId to correlate each span with the related profile data.
  2. Use traceId to correlate the entire trace with the related profile data.

However, I noticed that we use spanId and rootSpanId in the dd-trace-java project. Is there any deeper consideration behind this choice?

I hope to receive your response. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants