-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
@@ -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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :(
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