Community코딩 & 개발github.com

getsentry/sentry-flutter-sdk

Flutter 및 Dart를 위한 완전한 Sentry SDK 설정 가이드입니다. 'Flutter에 Sentry 추가', 'sentry_flutter 설치', 'Dart에서 Sentry 설정' 또는 Flutter 애플리케이션의 오류 모니터링, 트레이싱, 프로파일링, 세션 리플레이, 로깅 구성을 요청할 때 사용하세요. Android, iOS, macOS, Linux, Windows 및 Web을 지원합니다.

sentry-flutter-sdk란 무엇인가요?

이 스킬은 Flutter 및 Dart 애플리케이션에 Sentry SDK(`sentry_flutter`, `sentry_dart`)를 설치 및 구성하는 방법을 제공합니다. 오류 모니터링, 성능 트레이싱, 프로파일링, 세션 리플레이, 로깅 등 Sentry의 주요 기능을 Flutter 앱에 통합할 수 있습니다. Android, iOS, macOS, Linux, Windows, Web 등 다양한 플랫폼을 지원하며, `pub add` 명령어를 통해 패키지를 추가하고 환경 변수(`SENTRY_DSN`)를 설정하는 것만으로 간편하게 시작할 수 있습니다. 이 스킬은 Sentry 초기화, 성능 트레이싱 활성화, 네이티브 크래시 처리 등 실무에서 필요한 단계별 설정을 안내하여 개발자가 안정적인 모니터링 환경을 빠르게 구축할 수 있도록 돕습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/getsentry/sentry-for-ai/tree/main/skills/sentry-flutter-sdk

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

sentry-flutter-sdk은(는) 무엇을 하나요?

Flutter 및 Dart를 위한 완전한 Sentry SDK 설정 가이드입니다. 'Flutter에 Sentry 추가', 'sentry_flutter 설치', 'Dart에서 Sentry 설정' 또는 Flutter 애플리케이션의 오류 모니터링, 트레이싱, 프로파일링, 세션 리플레이, 로깅 구성을 요청할 때 사용하세요. Android, iOS, macOS, Linux, Windows 및 Web을 지원합니다.

주요 단계

  1. 의존성 추가: sentry_flutter 패키지를 프로젝트에 추가합니다.

    flutter pub add sentry_flutter
    

    또는 Dart 전용 프로젝트인 경우:

    dart pub add sentry_dart
    
  2. Sentry 초기화: main 함수에서 앱 실행 전에 Sentry를 초기화합니다.

    import 'package:flutter/widgets.dart';
    import 'package:sentry_flutter/sentry_flutter.dart';
    
    Future<void> main() async {
      WidgetsFlutterBinding.ensureInitialized();
      
      await SentryFlutter.init(
        (options) {
          options.dsn = 'https://[email protected]/0';
          options.tracesSampleRate = 1.0; // 프로덕션 환경에서는 적절히 조정하세요
        },
        // 앱 위젯을 전달합니다
        appRunner: () => runApp(const MyApp()),
      );
    }
    
  3. 환경 변수 사용 (선택 사항): SENTRY_DSN 환경 변수를 설정하여 DSN을 안전하게 관리할 수 있습니다.

    export SENTRY_DSN="https://[email protected]/0"
    

    코드에서는 다음과 같이 참조합니다:

    options.dsn = 'SENTRY_DSN';
    

추가 구성 옵션

  • 성능 트레이싱: options.tracesSampleRate를 설정하여 트랜잭션 샘플링 비율을 조정합니다.
  • 프로파일링: options.profilesSampleRate를 설정하여 프로파일링을 활성화합니다.
  • 세션 리플레이: sentry_flutter 패키지에서 기본 제공되는 세션 리플레이 기능을 사용할 수 있습니다.
  • 네이티브 크래시 처리: Android 및 iOS의 네이티브 크래시를 자동으로 캡처합니다.

지원 플랫폼

  • Android
  • iOS
  • macOS
  • Linux
  • Windows
  • Web

참고 자료

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

getsentry/sentry-android-sdk

Full Sentry SDK setup for Android. Use when asked to "add Sentry to Android", "install sentry-android", "setup Sentry in Android", or configure error monitoring, tracing, profiling, session replay, or logging for Android applications. Supports Kotlin and Java codebases.

getsentry/sentry-browser-sdk

Full Sentry SDK setup for browser JavaScript. Use when asked to "add Sentry to a website", "install @sentry/browser", or configure error monitoring, tracing, session replay, or logging for vanilla JavaScript, jQuery, static sites, or WordPress.

getsentry/sentry-cloudflare-sdk

Full Sentry SDK setup for Cloudflare Workers and Pages. Use when asked to "add Sentry to Cloudflare Workers", "install @sentry/cloudflare", or configure error monitoring, tracing, logging, crons, or AI monitoring for Cloudflare Workers, Pages, Durable Objects, Queues, Workflows, or Hono on Cloudflare.

getsentry/sentry-cocoa-sdk

Full Sentry SDK setup for Apple platforms (iOS, macOS, tvOS, watchOS, visionOS). Use when asked to "add Sentry to iOS", "add Sentry to Swift", "install sentry-cocoa", or configure error monitoring, tracing, profiling, session replay, logging, or metrics for Apple applications. Supports SwiftUI and UIKit.

getsentry/sentry-code-review

Analyze and resolve Sentry comments on GitHub Pull Requests. Use this when asked to review or fix issues identified by Sentry in PR comments. Can review specific PRs by number or automatically find recent PRs with Sentry feedback.

getsentry/sentry-create-alert

Create Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue priority alerts, or build workflow automations. Supports email, Slack, PagerDuty, Discord, and other notification actions.

getsentry/sentry-dotnet-sdk

Full Sentry SDK setup for .NET. Use when asked to "add Sentry to .NET", "install Sentry for C#", or configure error monitoring, tracing, profiling, logging, or crons for ASP.NET Core, MAUI, WPF, WinForms, Blazor, Azure Functions, or any other .NET application.

getsentry/sentry-elixir-sdk

Full Sentry SDK setup for Elixir. Use when asked to "add Sentry to Elixir", "install sentry for Elixir", or configure error monitoring, tracing, logging, or crons for Elixir, Phoenix, or Plug applications. Supports Phoenix, Plug, LiveView, Oban, and Quantum.

getsentry/sentry-feature-setup

Configure specific Sentry features beyond basic SDK setup. Use when asked to monitor AI/LLM calls, set up OpenTelemetry pipelines, create alerts and notifications, or enable span streaming.

getsentry/sentry-fix-issues

Find and fix issues from Sentry using MCP. Use when asked to fix Sentry errors, debug production issues, investigate exceptions, or resolve bugs reported in Sentry. Methodically analyzes stack traces, breadcrumbs, traces, and context to identify root causes.

getsentry/sentry-go-sdk

Full Sentry SDK setup for Go. Use when asked to "add Sentry to Go", "install sentry-go", "setup Sentry in Go", or configure error monitoring, tracing, logging, metrics, or crons for Go applications. Supports net/http, Gin, Echo, Fiber, FastHTTP, Iris, Negroni, and gRPC.

getsentry/sentry-nestjs-sdk

Full Sentry SDK setup for NestJS. Use when asked to "add Sentry to NestJS", "install @sentry/nestjs", "setup Sentry in NestJS", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for NestJS applications. Supports Express and Fastify adapters, GraphQL, microservices, WebSockets, and background jobs.

getsentry/sentry-nextjs-sdk

Full Sentry SDK setup for Next.js. Use when asked to "add Sentry to Next.js", "install @sentry/nextjs", or configure error monitoring, tracing, session replay, logging, profiling, AI monitoring, or crons for Next.js applications. Supports Next.js 13+ with App Router and Pages Router.

getsentry/sentry-node-sdk

Full Sentry SDK setup for Node.js, Bun, and Deno. Use when asked to "add Sentry to Node.js", "add Sentry to Bun", "add Sentry to Deno", "install @sentry/node", "@sentry/bun", or "@sentry/deno", or configure error monitoring, tracing, logging, profiling, metrics, crons, or AI monitoring for server-side JavaScript/TypeScript runtimes.

getsentry/sentry-otel-exporter-setup

Configure the OpenTelemetry Collector with Sentry Exporter for multi-project routing and automatic project creation. Use when setting up OTel with Sentry, configuring collector pipelines for traces and logs, or routing telemetry from multiple services to Sentry projects.

getsentry/sentry-php-sdk

Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, or crons for PHP applications. Supports plain PHP, Laravel, and Symfony.

getsentry/sentry-pr-code-review

Review a project's PRs to check for issues detected in code review by Seer Bug Prediction. Use when asked to review or fix issues identified by Sentry in PR comments, or to find recent PRs with Sentry feedback.

getsentry/sentry-python-sdk

Full Sentry SDK setup for Python. Use when asked to "add Sentry to Python", "install sentry-sdk", "setup Sentry in Python", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for Python applications. Supports Django, Flask, FastAPI, Celery, Starlette, AIOHTTP, Tornado, and more.

getsentry/sentry-react-native-sdk

Full Sentry SDK setup for React Native and Expo. Use when asked to "add Sentry to React Native", "install @sentry/react-native", "setup Sentry in Expo", or configure error monitoring, tracing, profiling, session replay, or logging for React Native applications. Supports Expo managed, Expo bare, and vanilla React Native.

getsentry/sentry-react-sdk

Full Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profiling, or logging for React applications. Supports React 16+, React Router v5-v7 non-framework mode, TanStack Router, Redux, Vite, and webpack.

관련 스킬