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

adding PushMetricExporterInterface #1097

Merged

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Aug 9, 2023

open-telemetry/opentelemetry-specification#3563 clarifies the behaviour of forceFlush with push/non-push metric exporters.
Break forceFlush out into a PushMetricExporterInterface, and update ExportingReader to only collect/flush if exporter is a push metric exporter.

Fixes #1086

open-telemetry/opentelemetry-specification#3563 clarifies the behaviour of
forceFlush with push/non-push metric exporters.
Break forceFlush out into a PushMetricExporterInterface, and update ExportingReader to only collect/flush
if exporter is a push metric exporter.
@brettmc brettmc requested a review from a team August 9, 2023 01:01
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #1097 (455f3fe) into main (9f35861) will increase coverage by 0.05%.
The diff coverage is 100.00%.

❗ Current head 455f3fe differs from pull request most recent head 215877f. Consider uploading reports for the commit 215877f to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1097      +/-   ##
============================================
+ Coverage     83.06%   83.12%   +0.05%     
+ Complexity     2203     2202       -1     
============================================
  Files           282      282              
  Lines          6277     6275       -2     
============================================
+ Hits           5214     5216       +2     
+ Misses         1063     1059       -4     
Flag Coverage Δ
7.4 81.77% <100.00%> (+0.05%) ⬆️
8.0 83.04% <100.00%> (+0.05%) ⬆️
8.1 83.18% <100.00%> (+0.05%) ⬆️
8.2 83.18% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/Contrib/Otlp/MetricExporter.php 41.66% <ø> (ø)
...K/Metrics/MetricExporter/ConsoleMetricExporter.php 0.00% <ø> (ø)
...rc/SDK/Metrics/MetricExporter/InMemoryExporter.php 57.89% <ø> (+5.51%) ⬆️
.../SDK/Metrics/MetricExporter/NoopMetricExporter.php 0.00% <ø> (ø)
...cs/MetricExporter/ConsoleMetricExporterFactory.php 100.00% <100.00%> (ø)
src/SDK/Metrics/MetricReader/ExportingReader.php 74.60% <100.00%> (+0.83%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f35861...215877f. Read the comment docs.

@brettmc brettmc merged commit 55c08f3 into open-telemetry:main Aug 9, 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.

MetricReader.ForceFlush is not part of the spec
2 participants