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

[HttpClient] Fix missing metric during network failures #4098

Conversation

vishweshbankwar
Copy link
Member

@vishweshbankwar vishweshbankwar commented Jan 23, 2023

Fixes #4055

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • Appropriate CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@codecov
Copy link

codecov bot commented Jan 24, 2023

Codecov Report

Merging #4098 (63cd608) into main (19a281e) will increase coverage by 0.97%.
The diff coverage is 100.00%.

❗ Current head 63cd608 differs from pull request most recent head 729defa. Consider uploading reports for the commit 729defa to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4098      +/-   ##
==========================================
+ Coverage   84.73%   85.70%   +0.97%     
==========================================
  Files         295      289       -6     
  Lines       11513    11375     -138     
==========================================
- Hits         9755     9749       -6     
+ Misses       1758     1626     -132     
Impacted Files Coverage Δ
...ementation/HttpHandlerMetricsDiagnosticListener.cs 95.23% <100.00%> (+0.23%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 79.41% <0.00%> (-2.95%) ⬇️
src/OpenTelemetry/Metrics/MetricReaderExt.cs 86.36% <0.00%> (-0.37%) ⬇️
src/OpenTelemetry/Metrics/Metric.cs 95.50% <0.00%> (-0.05%) ⬇️
src/OpenTelemetry/Metrics/MeterProviderSdk.cs 90.99% <0.00%> (-0.03%) ⬇️
...elemetry.Exporter.Console/ConsoleMetricExporter.cs 0.00% <0.00%> (ø)
...emetry/Metrics/Exemplar/AlwaysOffExemplarFilter.cs
...lemetry/Metrics/Exemplar/AlwaysOnExemplarFilter.cs
...metry/Metrics/Exemplar/TraceBasedExemplarFilter.cs
... and 10 more

@vishweshbankwar vishweshbankwar marked this pull request as ready for review January 24, 2023 18:39
@vishweshbankwar vishweshbankwar requested a review from a team January 24, 2023 18:39
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day.

@github-actions github-actions bot added the Stale Issues and pull requests which have been flagged for closing due to inactivity label Feb 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Feb 9, 2023
@github-actions github-actions bot removed the Stale Issues and pull requests which have been flagged for closing due to inactivity label Feb 14, 2023
@@ -90,35 +90,37 @@
{
"name": "Call that cannot resolve DNS will be reported as error span",
"method": "GET",
"url": "https://sdlfaldfjalkdfjlkajdflkajlsdjf.sdlkjafsdjfalfadslkf.com/",
"url": "http://sdlfaldfjalkdfjlkajdflkajlsdjf:{port}/",
Copy link
Member

Choose a reason for hiding this comment

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

why changed these?

Copy link
Member Author

Choose a reason for hiding this comment

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

wanted to validate we capture port information as well.

@cijothomas
Copy link
Member

/easycla

@cijothomas cijothomas merged commit 869dcce into open-telemetry:main Mar 1, 2023
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.

[HttpClient] http.client.duration metric is not reported in case of network connectivity or dns failure
4 participants