diff --git a/develop-docs/sdk/telemetry/metrics.mdx b/develop-docs/sdk/telemetry/metrics.mdx index bc828208cdbc8..beb1c1f2e8a11 100644 --- a/develop-docs/sdk/telemetry/metrics.mdx +++ b/develop-docs/sdk/telemetry/metrics.mdx @@ -370,9 +370,13 @@ Sentry.init({ -### Metrics Module +### Metrics Capturing Functionality -SDKs **MUST** expose metrics methods in a `metrics` module or namespace. At minimum, the SDK **MUST** implement the following methods: +SDKs **MUST** expose functionality for capturing `count`, `gauge`, and `distribution` metrics. + +Metrics-capturing functionality **SHOULD** be exposed as functions (or another suitable language construct) in a `metrics` module or namespace. If exposing the functionality in a module or namespace is infeasible in a particular SDK's language, the function names **SHOULD** be prefixed with the word `metric`. + +The **RECOMMENDED** API is as follows: - `Sentry.metrics.count(name, value, options)` — increment a counter - `Sentry.metrics.gauge(name, value, options)` — set a gauge value