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

DEBUG-2334 require file presence for line probe #4105

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

p-datadog
Copy link
Member

What does this PR do?

Adds checks that a line probe contains a file, which is required to instrument such a probe.

Motivation:
While testing manually I encountered an exception due to a line probe missing the file. This should not happen and such a configuration is not usable since we don't know which file to instrument. Add extra guards and a unit test to handle this case.

Change log entry
None

Additional Notes:

How to test the change?
Unit tests

@p-datadog p-datadog requested a review from a team as a code owner November 12, 2024 16:11
While testing manually I encountered an exception due to
a line probe missing the file. This should not happen
and such a configuration is not usable since we don't know
which file to instrument. Add extra guards and a unit test
to handle this case.
@p-datadog p-datadog force-pushed the di-line-probe-without-file branch from 6313753 to 659096c Compare November 12, 2024 16:12
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.80%. Comparing base (54a779e) to head (659096c).
Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4105      +/-   ##
==========================================
+ Coverage   97.74%   97.80%   +0.05%     
==========================================
  Files        1341     1341              
  Lines       80356    80416      +60     
  Branches     4030     4050      +20     
==========================================
+ Hits        78541    78647     +106     
+ Misses       1815     1769      -46     

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

@pr-commenter
Copy link

pr-commenter bot commented Nov 12, 2024

Benchmarks

Benchmark execution time: 2024-11-12 16:52:22

Comparing candidate commit 659096c in PR branch di-line-probe-without-file with baseline commit 53607b3 in branch master.

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

scenario:method instrumentation

  • 🟥 throughput [-19704.330op/s; -18623.594op/s] or [-8.666%; -8.191%]

Copy link
Contributor

@sarahchen6 sarahchen6 left a comment

Choose a reason for hiding this comment

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

Looks good!

@p-datadog p-datadog merged commit 7d88137 into master Nov 12, 2024
262 of 263 checks passed
@p-datadog p-datadog deleted the di-line-probe-without-file branch November 12, 2024 16:59
@github-actions github-actions bot added this to the 2.7.0 milestone Nov 12, 2024
@p-datadog p-datadog added the dev/internal Other internal work that does not need to be included in the changelog label Nov 13, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants