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

[SDTEST-116] Implement manual_api_events metric #202

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

anmarchenko
Copy link
Member

What does this PR do?
Tracks manual_api_events metric when public API is used.

Internal instrumentations don't use public API anymore.

How to test the change?
Unit tests are provided

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.85%. Comparing base (8034e41) to head (3e67e2c).

Additional details and impacted files
@@                             Coverage Diff                             @@
##           anmarchenko/telemetry_metrics_net_requests     #202   +/-   ##
===========================================================================
  Coverage                                       98.84%   98.85%           
===========================================================================
  Files                                             247      247           
  Lines                                           11117    11175   +58     
  Branches                                          502      502           
===========================================================================
+ Hits                                            10989    11047   +58     
  Misses                                            128      128           

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

@@ -70,7 +70,7 @@ def on_test_case_started(event)

start_test_suite(test_suite_name) unless same_test_suite_as_current?(test_suite_name)

test_span = CI.start_test(

Choose a reason for hiding this comment

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

I'm not sure what the difference is between start_test and trace_test (other than the &block parameter, which does not seem to be used here), is this change intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the start_test is a convenience method that does not take a code block. I implemented it for public API, but not for private API. Now because of telemetry I cannot use public API anymore, so no convenience for me :(

Base automatically changed from anmarchenko/telemetry_metrics_net_requests to main July 29, 2024 07:47
@anmarchenko anmarchenko merged commit 61ba977 into main Jul 29, 2024
25 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/telemetry_metrics_manual_api branch July 29, 2024 07:48
@github-actions github-actions bot added this to the 1.3.0 milestone Jul 29, 2024
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.

3 participants