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

POC - Almost complete templated solution for ASP.Net Core MVC prometheus metrics Exporter #142

Conversation

ysma500
Copy link
Contributor

@ysma500 ysma500 commented Jul 10, 2019

Is a response to the Issue #124 .
Is a proof of concept.
Am open to new ideas.

Snipped from Issue #124 : "As a dev using ASP.Net Core MVC, I mainly use the file appsettings.json to assign different settings. We could use that file to do the heavy lifting of setting-up Prometheus Exporter."

It could be generalized by being able to use more than one Exporter under the MetricsShim.

{
public MetricExporter MetricsExp;
private string _json;
public MetricShim(string jsonString)
Copy link
Member

Choose a reason for hiding this comment

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

perhaps a better solution would be use ConfigurationProvider from asp.net core itself, instead of doing parsing of json file. That'll allow config not just from appsettings.json, but from other providers as well (like env variable etc).

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.0

@SergeyKanzhelev
Copy link
Member

I'm closing this PR as it's quite old and uses Stats while we are moving towards Mertrics API.

Yun-Ting pushed a commit to Yun-Ting/opentelemetry-dotnet that referenced this pull request Oct 13, 2022
…pen-telemetry#152)

* Add WCF ServiceBehavior implementation. Resolves open-telemetry#142.

* Update src/OpenTelemetry.Contrib.Instrumentation.Wcf/TelemetryServiceBehavior.cs

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>

* In response to PR open-telemetry#152 comments. Refactor common code that adds dispatch behavior to endpoint from both TelemetryServiceBehavior and TelemetryEndpointBehaviorUpdate

src/OpenTelemetry.Contrib.Instrumentation.Wcf/TelemetryServiceBehavior.cs
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>

* Fixed lint errors in README & updated CHANGELOG.

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
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.

3 participants