Skip to content

Use custom labels library for trace correlation with OTel eBPF profiler #211

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

elsakeirouz
Copy link

@elsakeirouz elsakeirouz commented Apr 28, 2025

Description

This PR presents a different approach to trace to profile correlation with the OpenTelemetry eBPF profiler. It uses the custom-labels library.

Motivation

We want to compare different implementations to come up with an optimal version.

Additional Notes

@elsakeirouz elsakeirouz self-assigned this Apr 28, 2025
@elsakeirouz elsakeirouz force-pushed the elsa/custom-labels-for-trace-corr branch 7 times, most recently from 0be754a to f31f6b6 Compare April 30, 2025 14:48
@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 31.37255% with 35 lines in your changes missing coverage. Please review.

Project coverage is 86.46%. Comparing base (e14a5a4) to head (46dd99b).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
include/datadog/tracer_signature.h 0.00% 14 Missing ⚠️
src/datadog/tracer.cpp 29.41% 12 Missing ⚠️
src/datadog/span.cpp 16.66% 5 Missing ⚠️
src/datadog/trace_segment.cpp 25.00% 3 Missing ⚠️
src/datadog/tracer_config.cpp 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
- Coverage   87.02%   86.46%   -0.56%     
==========================================
  Files          80       80              
  Lines        5140     5187      +47     
==========================================
+ Hits         4473     4485      +12     
- Misses        667      702      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@elsakeirouz elsakeirouz force-pushed the elsa/custom-labels-for-trace-corr branch 2 times, most recently from fbbb2dd to 628c84e Compare May 6, 2025 11:01
dmehala and others added 3 commits May 6, 2025 11:01
* CMakeLists.txt
* include/datadog/environment.h
* include/datadog/tracer.h
* include/datadog/tracer_config.h
* include/datadog/tracer_signature.h
* src/datadog/tracer.cpp
* src/datadog/tracer_config.cpp
* include/datadog/tracer.h
* src/datadog/otel_identifiers.h
* src/datadog/span.cpp
* src/datadog/trace_segment.cpp
* src/datadog/tracer.cpp
@elsakeirouz elsakeirouz force-pushed the elsa/custom-labels-for-trace-corr branch from 628c84e to 9ac8c36 Compare May 6, 2025 11:01
@Gandem
Copy link
Member

Gandem commented May 13, 2025

/trigger-ci

@dd-devflow
Copy link

dd-devflow bot commented May 13, 2025

View all feedbacks in Devflow UI.

2025-05-13 06:28:56 UTC ℹ️ Start processing command /trigger-ci


2025-05-13 06:28:59 UTC ℹ️ Gitlab pipeline started

Started pipeline #64891338

@pr-commenter
Copy link

pr-commenter bot commented May 13, 2025

Benchmarks

Benchmark execution time: 2025-05-19 11:37:15

Comparing candidate commit 46dd99b in PR branch elsa/custom-labels-for-trace-corr with baseline commit e14a5a4 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@elsakeirouz elsakeirouz force-pushed the elsa/custom-labels-for-trace-corr branch 6 times, most recently from aaeee40 to c0e1ff4 Compare May 19, 2025 11:18
* CMakeLists.txt
* cmake/deps/customlabels.cmake
* include/datadog/tracer_signature.h
* src/datadog/trace_segment.cpp
* BUILD.bazel
* MODULE.bazel
The telemetry initialization now takes a few seconds.
This delay is problematic for trace-to-profile correlation
since it delays the initialization of the process storage,
which the eBPF profiler checks once when it first encounters
the process.

* src/datadog/tracer.cpp
@elsakeirouz elsakeirouz force-pushed the elsa/custom-labels-for-trace-corr branch from c0e1ff4 to 46dd99b Compare May 19, 2025 11:30
endif()

include(CheckCompilerFlag)
check_compiler_flag(CXX "-ftls-dialect=${TLS_DIALECT}" TLS_DIALECT_OK)

Choose a reason for hiding this comment

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

Reminder: mtls instead of ftls

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.

5 participants