Saleh

Offen
#6,803 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Bereich
mobile-dev

Rechercherichtung

Start with the Android integration and the application's Sentry.init() call, then determine how the sentry-java SDK is initialized in this repository. The pasted React Native instructions do not identify a Java or Kotlin entry point, and the reproduction steps are only foo, so the required project change must first be clarified. Done means the requested tracing behavior is implemented in the appropriate Android or JVM SDK code and verified by an integration test or a documented verification procedure.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Android Bug Platform: Java Waiting for: Product Owner
Integration

sentry-android

Build System

Gradle

AGP Version

1.0

Proguard

Enabled

Other Error Monitoring Solution

No

Version

35

Steps to Reproduce

1.foo

Expected Result

Please enable Sentry tracing in my app.

Actual Result

Install

Make sure your Sentry React Native SDK version is at least 5.32.0. If you already have the SDK installed, you can update it to the latest version with:

pnpm add @sentry/react-native@latest

Configure SDK

Enable Tracing and Profiling by adding tracesSampleRate and profilesSampleRate to your Sentry.init() call.


import * as Sentry from "@sentry/react-native";

Sentry.init({
  dsn: "https://92d0d12719a88713f4e8e4880d874943@o4512511618908160.ingest.de.sentry.io/4512511947309136",
  dataCollection: {
    // To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:
    // https://docs.sentry.io/platforms/react-native/configuration/options/#dataCollection
    // userInfo: false,
    // httpBodies: [],
  },
  // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
  // We recommend adjusting this value in production.
  tracesSampleRate: 1.0,
  // profilesSampleRate is relative to tracesSampleRate.
  // Here, we'll capture profiles for 100% of transactions.
  profilesSampleRate: 1.0,
});

Verify

Verify that profiling is working correctly by simply using your application.

Vorherrschende Sprache
Kotlin
Sterne
1.4k
Forks
483
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
202

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-java

Alle Issues in getsentry/sentry-java

Ähnliche Issues

Weitere Issues zu Kotlin

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.