Skip to content

feat: enable code hotspots reporting for native #127

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elsakeirouz
Copy link
Contributor

@elsakeirouz elsakeirouz commented Apr 2, 2025

  • go.mod
  • go.sum
  • reporter/datadog_reporter.go

TO BE UPDATED

What does this PR do?

It makes use of the information newly made available by the ebpf profiler in order to correlate traces and profiles by adding the runtimeID tag and the spanID, transactionID and traceID labels to the profile.

Motivation

This will enable the use of the existing code-hotspots feature for any instrumented code containing the desired data in the specified formats.

@elsakeirouz elsakeirouz self-assigned this Apr 2, 2025
@elsakeirouz elsakeirouz force-pushed the elsa/trace-to-profile-corr branch 4 times, most recently from e0f0057 to 46c683c Compare April 7, 2025 11:01
Comment on lines +586 to +588
if traceKey.apmRuntimeID != "" {
runtimeID = traceKey.apmRuntimeID
}
Copy link
Contributor Author

@elsakeirouz elsakeirouz Apr 7, 2025

Choose a reason for hiding this comment

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

This is simple for now because we are testing with one instrumented process at a time. This section (and all relative ones) will need to be updated accordingly later.

@elsakeirouz elsakeirouz force-pushed the elsa/trace-to-profile-corr branch 2 times, most recently from 70bc80f to e2df3d6 Compare April 7, 2025 16:08
@elsakeirouz elsakeirouz marked this pull request as ready for review April 7, 2025 16:09
@elsakeirouz elsakeirouz requested a review from a team as a code owner April 7, 2025 16:09
* go.mod,
* go.sum,
* reporter/datadog_reporter.go: Here.
@elsakeirouz elsakeirouz force-pushed the elsa/trace-to-profile-corr branch from e2df3d6 to 401509b Compare April 11, 2025 14:22
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.

1 participant