diff --git a/platform-includes/metrics/options/dotnet.mdx b/platform-includes/metrics/options/dotnet.mdx index 346a7a1967fd28..258913932ff78b 100644 --- a/platform-includes/metrics/options/dotnet.mdx +++ b/platform-includes/metrics/options/dotnet.mdx @@ -1,6 +1,6 @@ #### EnableMetrics -Set to `false` in order to disable the `SentrySdk.Experimental.Metrics` APIs. +Set to `false` in order to disable the `SentrySdk.Metrics` APIs. #### SetBeforeSendMetric @@ -10,7 +10,7 @@ To filter metrics, or update them before they are sent to Sentry, you can use th SentrySdk.Init(options => { options.Dsn = "___PUBLIC_DSN___"; - options.Experimental.SetBeforeSendMetric(static metric => + options.SetBeforeSendMetric(static metric => { if (metric.Name == "removed-metric") { diff --git a/platform-includes/metrics/usage/dotnet.mdx b/platform-includes/metrics/usage/dotnet.mdx index 7143cf3c212923..71823aa0814aca 100644 --- a/platform-includes/metrics/usage/dotnet.mdx +++ b/platform-includes/metrics/usage/dotnet.mdx @@ -1,4 +1,4 @@ -Metrics are enabled by default. Once you initialize the SDK, you can send metrics using the `SentrySdk.Experimental.Metrics` APIs. +Metrics are enabled by default. Once you initialize the SDK, you can send metrics using the `SentrySdk.Metrics` APIs. The `SentryMetricEmitter` type exposes three method groups that you can use to capture different types of metric information: `Counter`, `Gauge`, and `Distribution`. @@ -13,7 +13,7 @@ To emit a counter, do the following: ```csharp // Record five total button clicks -SentrySdk.Experimental.Metrics.EmitCounter("button_click", 5, +SentrySdk.Metrics.EmitCounter("button_click", 5, [new KeyValuePair("browser", "Firefox"), new KeyValuePair("app_version", "1.0.0")]); ``` @@ -25,7 +25,7 @@ To emit a distribution, do the following: ```csharp // Add '15.0' to a distribution used for tracking the loading times per page. -SentrySdk.Experimental.Metrics.EmitDistribution("page_load", 15.0, MeasurementUnit.Duration.Millisecond, +SentrySdk.Metrics.EmitDistribution("page_load", 15.0, MeasurementUnit.Duration.Millisecond, [new KeyValuePair("page", "/home")]); ``` @@ -37,6 +37,6 @@ To emit a gauge, do the following: ```csharp // Add '15.0' to a gauge used for tracking the loading times for a page. -SentrySdk.Experimental.Metrics.EmitGauge("page_load", 15.0, MeasurementUnit.Duration.Millisecond, +SentrySdk.Metrics.EmitGauge("page_load", 15.0, MeasurementUnit.Duration.Millisecond, [new KeyValuePair("page", "/home")]); ```