-
Notifications
You must be signed in to change notification settings - Fork 765
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
Add Resource support for MetricProvider #2150
Conversation
@@ -75,6 +93,8 @@ public override ExportResult Export(in Batch<MetricItem> batch) | |||
|
|||
string time = $"{metric.StartTimeExclusive.ToLocalTime().ToString("HH:mm:ss.fff")} {metric.EndTimeInclusive.ToLocalTime().ToString("HH:mm:ss.fff")}"; | |||
|
|||
|
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.
nit: remove extra white lines.
@@ -20,8 +20,22 @@ namespace OpenTelemetry.Metrics | |||
{ | |||
public abstract class MetricProcessor : BaseProcessor<MetricItem> | |||
{ | |||
protected readonly BaseExporter<MetricItem> exporter; |
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.
nice! 👍
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.
LGTM.
Codecov Report
@@ Coverage Diff @@
## metrics #2150 +/- ##
===========================================
- Coverage 75.36% 75.18% -0.19%
===========================================
Files 215 216 +1
Lines 6893 6910 +17
===========================================
Hits 5195 5195
- Misses 1698 1715 +17
|
Adds Resource support to MeterProvider, making it more closely aligned with TracerProvider.