-
Notifications
You must be signed in to change notification settings - Fork 777
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 aspnet metric example #3033
Add aspnet metric example #3033
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3033 +/- ##
==========================================
+ Coverage 84.70% 84.72% +0.02%
==========================================
Files 258 258
Lines 9095 9095
==========================================
+ Hits 7704 7706 +2
+ Misses 1391 1389 -2
|
…com/vishweshbankwar/opentelemetry-dotnet into vibankwa/add-aspnet-metrics-example
exporterOptions.Targets = ConsoleExporterOutputTargets.Debug; | ||
|
||
// The ConsoleMetricExporter defaults to a manual collect cycle. | ||
// This configuration causes metrics to be exported to stdout on a 10s interval. |
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.
Given #2982 is merged, we can simplify the code here?
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.
FYI @alanwest, IIRC you plan to remove the MetricReaderType entirely?
|
||
var meterBuilder = Sdk.CreateMeterProviderBuilder() | ||
.AddAspNetInstrumentation() | ||
.AddHttpClientInstrumentation(); |
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.
HttpClient for .NET FW don't produce metrics as of today, so its best to remove this line to avoid confusion. We can add it when httpclient starts having some metrics.
No description provided.