Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traces and Profiles are not collected #4554

Open
CodeXiD opened this issue Feb 17, 2025 · 1 comment
Open

Traces and Profiles are not collected #4554

CodeXiD opened this issue Feb 17, 2025 · 1 comment

Comments

@CodeXiD
Copy link

CodeXiD commented Feb 17, 2025

What React Native libraries do you use?

Hermes, React Navigation, React Native without Frameworks

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.7.0

How does your development environment look like?

OS: MacOS 15.2
Node: 20.11.0
NPM: 10.2.4
Expo: 52.0.21
React: 18.3.1
React-Native: 0.76.5
Hermes enabled: Yes
New Arch Enabled: No

Sentry.init()

Sentry.init({
  // enabled: !__DEV__,
  dsn: "https://[email protected]/...",
  tracesSampleRate: 1.0,
  profilesSampleRate: 1.0,
  attachViewHierarchy: true,
  sampleRate: 1,
  debug: true,
  environment: "development",
  attachStacktrace: true,
  enableTracing: true,
  enableAutoSessionTracking: true,
  sessionTrackingIntervalMillis: 30000,
  autoInitializeNativeSdk: true,
  integrations(defaultIntegration) {
    return [
      ...defaultIntegration,
      Sentry.reactNavigationIntegration({
        routeChangeTimeoutMs: 500,
        enableTimeToInitialDisplay: true,
        ignoreEmptyBackNavigationTransactions: true,
      }),
      Sentry.reactNativeTracingIntegration({
        idleTimeoutMs: 5_000,
      }),
      Sentry.mobileReplayIntegration({
        maskAllImages: false,
        maskAllText: false,
      }),
      Sentry.appStartIntegration({
        standalone: false,
      }),
    ]
  },
  _experiments: {
    replaysSessionSampleRate: 1.0,
    replaysOnErrorSampleRate: 1.0,
  },
})



// Of course there is also a wrapper

export default Sentry.wrap(IgniteApp)

Steps to Reproduce

  1. Running an application project in XCode
  2. I'm watching the logs

Expected Result

Traces and Profiles are recorded

Actual Result

I get the following log in the console
[Sentry] [debug] [SentryBaseIntegration:30] Not going to enable SentryPerformanceTrackingIntegration because isTracingEnabled is disabled.

And there is nothing in Sentry, not in Performance, not in Traces, not in Profiles, but in "Replays" screen recordings with logs are created
Errors are also for some reason recorded only in Android, and not a single error comes from the iOS build

@krystofwoldrich
Copy link
Member

Hi @CodeXiD,
thank you for the message,

to confirm both Errors and Performance data are not sent from the iOS version of the application?

Could you share a larger chunk of the JS and iOS console logs?

@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Feb 19, 2025
@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 3 Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

2 participants