Skip to content

refactor(prof): tag handling#3423

Merged
morrisonlevi merged 1 commit into
masterfrom
PROF-12583-Refactor-tags-handling
Sep 19, 2025
Merged

refactor(prof): tag handling#3423
morrisonlevi merged 1 commit into
masterfrom
PROF-12583-Refactor-tags-handling

Conversation

@morrisonlevi

@morrisonlevi morrisonlevi commented Sep 19, 2025

Copy link
Copy Markdown
Collaborator

Description

Tags are now divided into three groups:

  1. Globals which are language, profiler version, process ID, etc.
  2. Unified service tags which are service, env, and version.
  3. Locals, which are request-local tags where DD_TAGS are stored. Unified service tag are also request-local but stored separately.

Globals are initialized lazily. This moves more tags into global.

The warning for an invalid tag now includes the key name. All our tag keys are static, so there's not privacy concern to include it.

The Vec<Tag> now reserves exactly how much memory it needs. I don't expect this to be a meaningful performance change, just doing it while I'm here.

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

Tags are divided into three groups:
 1. Globals which are language, profiler version, process ID, etc.
 2. Unified service tags which are service, env, and version.
 3. Locals, which are request-local tags where DD_TAGS are stored.
    Unified service tag are also request-local but stored separately.

Globals are initialized lazily. This moves more tags into global.

The `Vec<Tag>` now reserves exactly how much memory it needs. I don't
expect this to be a meaningful change, just doing it while I'm here.
@github-actions github-actions Bot added profiling Relates to the Continuous Profiler tracing labels Sep 19, 2025
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.85%. Comparing base (4c233be) to head (e653e1f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3423      +/-   ##
==========================================
- Coverage   61.87%   61.85%   -0.02%     
==========================================
  Files         141      141              
  Lines       12481    12481              
  Branches     1630     1630              
==========================================
- Hits         7722     7720       -2     
- Misses       4038     4041       +3     
+ Partials      721      720       -1     

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c233be...e653e1f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter

pr-commenter Bot commented Sep 19, 2025

Copy link
Copy Markdown

Benchmarks [ profiler ]

Benchmark execution time: 2025-09-19 21:48:24

Comparing candidate commit e653e1f in PR branch PROF-12583-Refactor-tags-handling with baseline commit 4c233be in branch master.

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

scenario:walk_stack/50

  • 🟥 wall_time [+647.804ns; +659.902ns] or [+4.219%; +4.298%]

scenario:walk_stack/99

  • 🟥 wall_time [+635.786ns; +640.568ns] or [+4.149%; +4.180%]

@morrisonlevi
morrisonlevi marked this pull request as ready for review September 19, 2025 22:14
@morrisonlevi
morrisonlevi requested a review from a team as a code owner September 19, 2025 22:14
@morrisonlevi
morrisonlevi merged commit b8bf258 into master Sep 19, 2025
1869 of 1873 checks passed
@morrisonlevi
morrisonlevi deleted the PROF-12583-Refactor-tags-handling branch September 19, 2025 23:05
@github-actions github-actions Bot added this to the 1.13.0 milestone Sep 19, 2025

@realFlowControl realFlowControl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Labels

profiling Relates to the Continuous Profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants