---
title: "Set Up"
description: "Learn how to set up Sentry's Application Metrics using our supported SDKs."
url: https://docs.sentry.io/product/metrics/getting-started/
---

# Set Up Application Metrics | Sentry Docs

To set up Sentry's Application Metrics, use the links below for supported SDKs. After it's been set up, you'll be able to send counters, gauges, and distributions from your code and view them in Sentry with direct links to related traces.

## [Supported SDKs](https://docs.sentry.io/product/metrics/getting-started.md#supported-sdks)

### [JavaScript](https://docs.sentry.io/product/metrics/getting-started.md#javascript)

* [![javascript.browser icon](https://docs.sentry.io/_next/static/media/javascript.d53aab1f.svg)Browser JavaScript](https://docs.sentry.io/platforms/javascript/metrics.md)Set up the Sentry Browser JavaScript SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.angular icon](https://docs.sentry.io/_next/static/media/angularjs.8e98e235.svg)Angular](https://docs.sentry.io/platforms/javascript/guides/angular/metrics.md)Set up the Sentry Angular SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.astro icon](https://docs.sentry.io/_next/static/media/astro.3cb960c2.svg)Astro](https://docs.sentry.io/platforms/javascript/guides/astro/metrics.md)Set up the Sentry Astro SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.aws-lambda icon](https://docs.sentry.io/_next/static/media/awslambda.4ae6e6f7.svg)AWS Lambda](https://docs.sentry.io/platforms/javascript/guides/aws-lambda/metrics.md)Set up the Sentry AWS Lambda SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.azure-functions icon](https://docs.sentry.io/_next/static/media/azure-functions.0d829f41.svg)Azure Functions](https://docs.sentry.io/platforms/javascript/guides/azure-functions/metrics.md)Set up the Sentry Azure Functions SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.bun icon](https://docs.sentry.io/_next/static/media/bun.64e0abda.svg)Bun](https://docs.sentry.io/platforms/javascript/guides/bun/metrics.md)Set up the Sentry Bun SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.cloudflare icon](https://docs.sentry.io/_next/static/media/cloudflare.7e288bf9.svg)Cloudflare](https://docs.sentry.io/platforms/javascript/guides/cloudflare/metrics.md)Set up the Sentry Cloudflare SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.electron icon](https://docs.sentry.io/_next/static/media/electron.9dec18b9.svg)Electron](https://docs.sentry.io/platforms/javascript/guides/electron/metrics.md)Set up the Sentry Electron SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.ember icon](https://docs.sentry.io/_next/static/media/ember.9862ba42.svg)Ember](https://docs.sentry.io/platforms/javascript/guides/ember/metrics.md)Set up the Sentry Ember SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.express icon](https://docs.sentry.io/_next/static/media/express.ccf88a5c.svg)Express](https://docs.sentry.io/platforms/javascript/guides/node/metrics.md)Set up the Sentry Express SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.fastify icon](https://docs.sentry.io/_next/static/media/fastify.41f6ba73.svg)Fastify](https://docs.sentry.io/platforms/javascript/guides/node/metrics.md)Set up the Sentry Fastify SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.gatsby icon](https://docs.sentry.io/_next/static/media/gatsby.d1e74154.svg)Gatsby](https://docs.sentry.io/platforms/javascript/guides/gatsby/metrics.md)Set up the Sentry Gatsby SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.gcp-functions icon](https://docs.sentry.io/_next/static/media/gcp-functions.6492b2be.svg)Google Cloud Functions](https://docs.sentry.io/platforms/javascript/guides/gcp-functions/metrics.md)Set up the Sentry Google Cloud Functions SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.hapi icon](https://docs.sentry.io/_next/static/media/hapi.e3b32f5e.svg)Hapi](https://docs.sentry.io/platforms/javascript/guides/node/metrics.md)Set up the Sentry Hapi SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.hono icon](https://docs.sentry.io/_next/static/media/hono.3f338aa8.svg)Hono](https://docs.sentry.io/platforms/javascript/guides/hono/metrics.md)Set up the Sentry Hono SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.koa icon](https://docs.sentry.io/_next/static/media/koa.7d7a394d.svg)Koa](https://docs.sentry.io/platforms/javascript/guides/node/metrics.md)Set up the Sentry Koa SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.nestjs icon](https://docs.sentry.io/_next/static/media/nestjs.d9d27813.svg)Nest.js](https://docs.sentry.io/platforms/javascript/guides/nestjs/metrics.md)Set up the Sentry Nest.js SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.node icon](https://docs.sentry.io/_next/static/media/nodejs.79546009.svg)Node.js](https://docs.sentry.io/platforms/javascript/guides/node/metrics.md)Set up the Sentry Node.js SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.nextjs icon](https://docs.sentry.io/_next/static/media/nextjs.27669790.svg)Next.js](https://docs.sentry.io/platforms/javascript/guides/nextjs/metrics.md)Set up the Sentry Next.js SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.nuxt icon](https://docs.sentry.io/_next/static/media/nuxt.90663273.svg)Nuxt](https://docs.sentry.io/platforms/javascript/guides/nuxt/metrics.md)Set up the Sentry Nuxt SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.react icon](https://docs.sentry.io/_next/static/media/react.e3c301d5.svg)React](https://docs.sentry.io/platforms/javascript/guides/react/metrics.md)Set up the Sentry React SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.react-router icon](https://docs.sentry.io/_next/static/media/react-router.e30ce352.svg)React Router](https://docs.sentry.io/platforms/javascript/guides/react-router/metrics.md)Set up the Sentry React Router SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.remix icon](https://docs.sentry.io/_next/static/media/remix.27fc09d0.svg)Remix](https://docs.sentry.io/platforms/javascript/guides/remix/metrics.md)Set up the Sentry Remix SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.solid icon](https://docs.sentry.io/_next/static/media/solid.398fcbf4.svg)Solid](https://docs.sentry.io/platforms/javascript/guides/solid/metrics.md)Set up the Sentry Solid SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.solidstart icon](https://docs.sentry.io/_next/static/media/solidstart.a4c37fbe.svg)SolidStart](https://docs.sentry.io/platforms/javascript/guides/solidstart/metrics.md)Set up the Sentry SolidStart SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.svelte icon](https://docs.sentry.io/_next/static/media/svelte.d8e9a29b.svg)Svelte](https://docs.sentry.io/platforms/javascript/guides/svelte/metrics.md)Set up the Sentry Svelte SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.sveltekit icon](https://docs.sentry.io/_next/static/media/svelte.d8e9a29b.svg)SvelteKit](https://docs.sentry.io/platforms/javascript/guides/sveltekit/metrics.md)Set up the Sentry SvelteKit SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.tanstackstart-react icon](https://docs.sentry.io/_next/static/media/tanstack.2a73006a.svg)TanStack Start](https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/metrics.md)Set up the Sentry TanStack Start SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.vue icon](https://docs.sentry.io/_next/static/media/vue.2bb828dc.svg)Vue](https://docs.sentry.io/platforms/javascript/guides/vue/metrics.md)Set up the Sentry Vue SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![javascript.wasm icon](https://docs.sentry.io/_next/static/media/wasm.1533893e.svg)Wasm](https://docs.sentry.io/platforms/javascript/guides/wasm/metrics.md)Set up the Sentry Wasm SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [Java](https://docs.sentry.io/product/metrics/getting-started.md#java)

* [![java icon](https://docs.sentry.io/_next/static/media/java.7b67f718.svg)Java](https://docs.sentry.io/platforms/java/metrics.md)
* [![java.spring icon](https://docs.sentry.io/_next/static/media/spring.ab758e55.svg)Spring](https://docs.sentry.io/platforms/java/guides/spring/metrics.md)
* [![java.spring-boot icon](https://docs.sentry.io/_next/static/media/springboot.03ca676c.svg)Spring Boot](https://docs.sentry.io/platforms/java/guides/spring-boot/metrics.md)

### [Elixir](https://docs.sentry.io/product/metrics/getting-started.md#elixir)

* [![elixir icon](https://docs.sentry.io/_next/static/media/elixir.aeadaa0f.svg)Elixir](https://docs.sentry.io/platforms/elixir/metrics.md)Set up the Sentry Elixir SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [Mobile](https://docs.sentry.io/product/metrics/getting-started.md#mobile)

* [![android icon](https://docs.sentry.io/_next/static/media/android.b3576036.svg)Android](https://docs.sentry.io/platforms/android/metrics.md)Set up the Sentry Android SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![apple.ios icon](https://docs.sentry.io/_next/static/media/apple.007b3938.svg)iOS](https://docs.sentry.io/platforms/apple/guides/ios/metrics.md)Set up the Sentry iOS SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![apple.macos icon](https://docs.sentry.io/_next/static/media/apple.007b3938.svg)macOS](https://docs.sentry.io/platforms/apple/guides/macos/metrics.md)Set up the Sentry macOS SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![apple.tvos icon](https://docs.sentry.io/_next/static/media/apple.007b3938.svg)tvOS](https://docs.sentry.io/platforms/apple/guides/tvos/metrics.md)Set up the Sentry tvOS SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![apple.watchos icon](https://docs.sentry.io/_next/static/media/apple.007b3938.svg)watchOS](https://docs.sentry.io/platforms/apple/guides/watchos/metrics.md)Set up the Sentry watchOS SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![apple.visionos icon](https://docs.sentry.io/_next/static/media/apple.007b3938.svg)visionOS](https://docs.sentry.io/platforms/apple/guides/visionos/metrics.md)Set up the Sentry visionOS SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dart.flutter icon](https://docs.sentry.io/_next/static/media/flutter.b7cd4dd4.svg)Flutter](https://docs.sentry.io/platforms/dart/guides/flutter/metrics.md)Set up the Sentry Flutter SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![react-native icon](https://docs.sentry.io/_next/static/media/react-native.a5e5ad76.svg)React Native](https://docs.sentry.io/platforms/react-native/metrics.md)Set up the Sentry React Native SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [Python](https://docs.sentry.io/product/metrics/getting-started.md#python)

* [![python icon](https://docs.sentry.io/_next/static/media/python.94740f0e.svg)Python](https://docs.sentry.io/platforms/python/metrics.md)Set up the Sentry Python SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.django icon](https://docs.sentry.io/_next/static/media/django.16f2c3ca.svg)Django](https://docs.sentry.io/platforms/python/guides/django/metrics.md)Set up the Sentry Django SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.flask icon](https://docs.sentry.io/_next/static/media/flask.c9318ff4.svg)Flask](https://docs.sentry.io/platforms/python/guides/flask/metrics.md)Set up the Sentry Flask SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.fastapi icon](https://docs.sentry.io/_next/static/media/fastapi.1306a7b4.svg)FastAPI](https://docs.sentry.io/platforms/python/guides/fastapi/metrics.md)Set up the Sentry FastAPI SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.starlette icon](https://docs.sentry.io/_next/static/media/starlette.eef09715.svg)Starlette](https://docs.sentry.io/platforms/python/guides/starlette/metrics.md)Set up the Sentry Starlette SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.celery icon](https://docs.sentry.io/_next/static/media/celery.520b3988.svg)Celery](https://docs.sentry.io/platforms/python/guides/celery/metrics.md)Set up the Sentry Celery SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.aws-lambda icon](https://docs.sentry.io/_next/static/media/awslambda.4ae6e6f7.svg)AWS Lambda](https://docs.sentry.io/platforms/python/guides/aws-lambda/metrics.md)Set up the Sentry AWS Lambda SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![python.gcp-functions icon](https://docs.sentry.io/_next/static/media/gcp-functions.6492b2be.svg)Google Cloud Functions](https://docs.sentry.io/platforms/python/guides/gcp-functions/metrics.md)Set up the Sentry Google Cloud Functions SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [PHP](https://docs.sentry.io/product/metrics/getting-started.md#php)

* [![php icon](https://docs.sentry.io/_next/static/media/php.2bb9a6cf.svg)PHP](https://docs.sentry.io/platforms/php/metrics.md)Set up the Sentry PHP SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![php.symfony icon](https://docs.sentry.io/_next/static/media/symfony.61e42312.svg)Symfony](https://docs.sentry.io/platforms/php/guides/symfony/metrics.md)Set up the Sentry Symfony SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![php.laravel icon](https://docs.sentry.io/_next/static/media/laravel.978ff0fa.svg)Laravel](https://docs.sentry.io/platforms/php/guides/laravel/metrics.md)Set up the Sentry Laravel SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [Ruby](https://docs.sentry.io/product/metrics/getting-started.md#ruby)

* [![ruby icon](https://docs.sentry.io/_next/static/media/ruby.07144e67.svg)Ruby (incl. Rails)](https://docs.sentry.io/platforms/ruby/metrics.md)Set up the Sentry Ruby (incl. Rails) SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [Go](https://docs.sentry.io/product/metrics/getting-started.md#go)

* [![go icon](https://docs.sentry.io/_next/static/media/go.ac6569f8.svg)Go](https://docs.sentry.io/platforms/go/metrics.md)Set up the Sentry Go SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [.NET](https://docs.sentry.io/product/metrics/getting-started.md#net)

* [![dotnet icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg).NET](https://docs.sentry.io/platforms/dotnet/metrics.md)Set up the Sentry .NET SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.android icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg).NET for Android](https://docs.sentry.io/platforms/dotnet/guides/android/metrics.md)Set up the Sentry .NET for Android SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.apple icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg).NET for iOS, macOS, and Mac Catalyst](https://docs.sentry.io/platforms/dotnet/guides/apple/metrics.md)Set up the Sentry .NET for iOS, macOS, and Mac Catalyst SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.aspnet icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)ASP.NET](https://docs.sentry.io/platforms/dotnet/guides/aspnet/metrics.md)Set up the Sentry ASP.NET SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.aspnetcore icon](https://docs.sentry.io/_next/static/media/dotnetcore.c61e661d.svg)ASP.NET Core](https://docs.sentry.io/platforms/dotnet/guides/aspnetcore/metrics.md)Set up the Sentry ASP.NET Core SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.aws-lambda icon](https://docs.sentry.io/_next/static/media/awslambda.4ae6e6f7.svg)AWS Lambda](https://docs.sentry.io/platforms/dotnet/guides/aws-lambda/metrics.md)Set up the Sentry AWS Lambda SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.azure-functions-worker icon](https://docs.sentry.io/_next/static/media/azure-functions.0d829f41.svg)Azure Functions](https://docs.sentry.io/platforms/dotnet/guides/azure-functions-worker/metrics.md)Set up the Sentry Azure Functions SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.blazor-webassembly icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)Blazor WebAssembly](https://docs.sentry.io/platforms/dotnet/guides/blazor-webassembly/metrics.md)Set up the Sentry Blazor WebAssembly SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.entityframework icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)Entity Framework](https://docs.sentry.io/platforms/dotnet/guides/entityframework/metrics.md)Set up the Sentry Entity Framework SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.extensions-hosting icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)Generic Host](https://docs.sentry.io/platforms/dotnet/guides/extensions-hosting/metrics.md)Set up the Sentry Generic Host SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.extensions-logging icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)Microsoft.Extensions.Logging](https://docs.sentry.io/platforms/dotnet/guides/extensions-logging/metrics.md)Set up the Sentry Microsoft.Extensions.Logging SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.google-cloud-functions icon](https://docs.sentry.io/_next/static/media/gcp-functions.6492b2be.svg)Google Cloud Functions](https://docs.sentry.io/platforms/dotnet/guides/google-cloud-functions/metrics.md)Set up the Sentry Google Cloud Functions SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.log4net icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)log4net](https://docs.sentry.io/platforms/dotnet/guides/log4net/metrics.md)Set up the Sentry log4net SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.maui icon](https://docs.sentry.io/_next/static/media/maui.892e4870.svg)MAUI](https://docs.sentry.io/platforms/dotnet/guides/maui/metrics.md)Set up the Sentry MAUI SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.nlog icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)NLog](https://docs.sentry.io/platforms/dotnet/guides/nlog/metrics.md)Set up the Sentry NLog SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.serilog icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)Serilog](https://docs.sentry.io/platforms/dotnet/guides/serilog/metrics.md)Set up the Sentry Serilog SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.winforms icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)Windows Forms](https://docs.sentry.io/platforms/dotnet/guides/winforms/metrics.md)Set up the Sentry Windows Forms SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.winui icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)WinUI](https://docs.sentry.io/platforms/dotnet/guides/winui/metrics.md)Set up the Sentry WinUI SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.
* [![dotnet.wpf icon](https://docs.sentry.io/_next/static/media/dotnet.aa679e25.svg)WPF](https://docs.sentry.io/platforms/dotnet/guides/wpf/metrics.md)Set up the Sentry WPF SDK with the Sentry CLI. Install the CLI with `curl https://cli.sentry.dev/install -fsS | bash`, then follow [the Sentry CLI docs](https://cli.sentry.dev/) to finish setup.

### [Native](https://docs.sentry.io/product/metrics/getting-started.md#native)

* [![native icon](https://docs.sentry.io/_next/static/media/nativec.2ce68873.svg)Native](https://docs.sentry.io/platforms/native/metrics.md)

### [Gaming](https://docs.sentry.io/product/metrics/getting-started.md#gaming)

* [![unreal icon](https://docs.sentry.io/_next/static/media/unreal.c7530b54.svg)Unreal Engine](https://docs.sentry.io/platforms/unreal/metrics.md)
* [![unity icon](https://docs.sentry.io/_next/static/media/unity.f3643a4c.svg)Unity](https://docs.sentry.io/platforms/unity/metrics.md)
* [![godot icon](https://docs.sentry.io/_next/static/media/godot.3a2b340d.svg)Godot Engine](https://docs.sentry.io/platforms/godot/metrics.md)

## [Upcoming SDKs](https://docs.sentry.io/product/metrics/getting-started.md#upcoming-sdks)

We're actively working on adding Application Metrics support to additional SDKs:

* Rust

If you don't see your platform listed above, please reach out to us on [GitHub](https://github.com/getsentry/sentry/discussions/102275) or [Discord](https://discord.gg/sentry) and we'll get it prioritized.

## [Best Practices](https://docs.sentry.io/product/metrics/getting-started.md#best-practices)

### [Naming Conventions](https://docs.sentry.io/product/metrics/getting-started.md#naming-conventions)

Use descriptive, dot-separated names that indicate the metric's purpose:

* **Good**: `checkout.failed`, `email.sent`, `queue.depth`
* **Avoid**: `metric1`, `counter`, `x`

### [Attributes](https://docs.sentry.io/product/metrics/getting-started.md#attributes)

Add attributes to to query metrics like:

* `sum(api.request)` grouped by `endpoint`
* `sum(api.request)` where `status:500`
* `sum(api.request)` grouped by `region` where `method:POST`

### [Units](https://docs.sentry.io/product/metrics/getting-started.md#units)

Always specify units for clarity:

* Time: `millisecond`, `seconds`
* Size: `byte`, `kilobyte`, `megabyte`

### [When to Instrument](https://docs.sentry.io/product/metrics/getting-started.md#when-to-instrument)

Add metrics at key decision points in your code:

* **Before/after critical operations**: Track success and failure rates
* **At service boundaries**: Monitor external API calls, database queries
* **Business logic**: Capture important business events
* **Resource usage**: Track queue depths, connection pools, cache sizes
