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

[PROF-10679] Fixes for comments from PR 3984 #3987

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Oct 10, 2024

What does this PR do?

This PR gathers fixes for review comments from PR #3984 . See individual commit messages and/or comments in that PR for details.

Motivation:

Since these comments did not impact the feature, and we wanted to get it merged ASAP, I merged that PR first, and here's the follow-up PR to address the comments.

Additional Notes:

N/A

How to test the change?

These features already had test coverage, and this PR tweaks it as needed.

As Alex pointed out, using `Qnil` as a marker for uninitialized
and `Qfalse` for failed to initialize is a bit of a footgun since it's
a very subtle detail.

To make it more obvious, I've changed this to `Qtrue` for uninitialized
and `Qnil` for failed to initialize, which hopefully is way harder
to confuse.
This avoids redundancy in `otel_without_ddtrace_trace_identifiers_for`
and simplifies one of our most complex functions for supporting otel.
…gs definition

This way users of the setting don't actually need to care about this.
@ivoanjo ivoanjo requested review from a team as code owners October 10, 2024 13:09
@ivoanjo ivoanjo added profiling Involves Datadog profiling dev/internal Other internal work that does not need to be included in the changelog labels Oct 10, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.84%. Comparing base (89d23d6) to head (222b4d4).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3987      +/-   ##
==========================================
+ Coverage   97.82%   97.84%   +0.01%     
==========================================
  Files        1314     1314              
  Lines       78648    78637      -11     
  Branches     3909     3906       -3     
==========================================
+ Hits        76937    76939       +2     
+ Misses       1711     1698      -13     

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

@pr-commenter
Copy link

pr-commenter bot commented Oct 10, 2024

Benchmarks

Benchmark execution time: 2024-10-10 13:35:37

Comparing candidate commit 222b4d4 in PR branch ivoanjo/prof-10679-feedback with baseline commit 89d23d6 in branch master.

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

scenario:profiler - sample timeline=false

  • 🟥 throughput [-0.611op/s; -0.595op/s] or [-8.684%; -8.454%]

@ivoanjo ivoanjo merged commit 58b17f0 into master Oct 10, 2024
252 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/prof-10679-feedback branch October 10, 2024 13:47
@github-actions github-actions bot added this to the 2.4.0 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/internal Other internal work that does not need to be included in the changelog profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants