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

[exporterhelper] Add observability to the new exporter helper #8244

Merged

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Aug 16, 2023

This change adds collector's internal metrics and tracing to the new request-based exporter helpers. Only those metrics and traces are added that are already adopted by the existing exporter helpers for backward compatibility. The new exporter helpers can and should expose more metrics in the future, e.g. for tracking converter errors.

This PR is built on top of #8178

Only the second commit contains exclusive changes

Tracking Issue: #8122

@dmitryax dmitryax requested review from a team and bogdandrutu August 16, 2023 23:40
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Patch coverage: 76.92% and no project coverage change.

Comparison is base (a2242f7) 90.17% compared to head (774e65a) 90.18%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8244   +/-   ##
=======================================
  Coverage   90.17%   90.18%           
=======================================
  Files         302      302           
  Lines       15733    15766   +33     
=======================================
+ Hits        14188    14218   +30     
- Misses       1253     1254    +1     
- Partials      292      294    +2     
Files Changed Coverage Δ
exporter/exporterhelper/request.go 40.00% <ø> (ø)
exporter/exporterhelper/logs.go 82.69% <76.92%> (-1.18%) ⬇️
exporter/exporterhelper/metrics.go 82.69% <76.92%> (-1.18%) ⬇️
exporter/exporterhelper/traces.go 82.85% <76.92%> (-1.19%) ⬇️

... and 1 file with indirect coverage changes

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

This change adds collector's internal metrics and tracing to the new request-based exporter helpers. Only those metrics and traces are added that already adopted by the existing exporter helpers for backward compatibility. The new exporter helpers can and should expose more metrics, e.g. for tracking converter errors.
@dmitryax dmitryax force-pushed the exporter-v2-enable-observability branch from a29e672 to 774e65a Compare August 21, 2023 18:28
@dmitryax dmitryax added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 21, 2023
@dmitryax dmitryax merged commit 3dad181 into open-telemetry:main Aug 21, 2023
31 of 33 checks passed
@dmitryax dmitryax deleted the exporter-v2-enable-observability branch August 21, 2023 22:09
@codeboten codeboten added this to the next release milestone Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants