getsentry / getsentry/sentry-dotnet

Support built in System.Diagnostics.Meters for instrumenting metrics

Open
#5,196 6 comments 3 reactions 0 assignees View on GitHub
.NET Feature Metrics Question
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

### Problem Statement

I think it would make more sense in the dotnet world to suggest to users to add meters to their app for metric use cases instead of using sentry sdk for collection that would allow for instrumentation via one path instead of having to duplicate SentrySDK capture for meters. This is more of the dotnet way to do things regarding metrics. Add something like this`.AddMeter(nameof(ResponseMetrics))` or `.AddMeter("System.Runtime")` to the sentry sdk setup so users can opt in to meters that should be tracked by sentry.

Another alternative path would be to collect metrics via OpenTelemetry bridge like traces are done which already has support for this.

### Solution Brainstorm

`.AddMeter(nameof(ResponseMetrics))` on Sentry.Init() would be the best way to do this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.