expo / sentry-expo

MIT License
202 stars 83 forks source link

TypeError: undefined is not a function (near '...(0, _tracing.instrumentOutgoingRequests)...') when using `tracesSampleRate: 1.0` #312

Closed garrettg123 closed 1 year ago

garrettg123 commented 1 year ago

Summary

import * as Sentry from 'sentry-expo'

Sentry.init({
  dsn: 'REMOVED',
  // tracesSampleRate: 1.0, // THIS BREAKS IT
  sampleRate: 1.0,
  enableNative: true, //IS_PRODUCTION,
  normalizeDepth: 10,
  debug: IS_DEBUGGING,
  enableInExpoDevelopment: true,
})

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

47

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 12.4 Shell: 3.0.2 - /usr/local/bin/fish Binaries: Node: 16.18.1 - /usr/local/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 8.19.2 - /usr/local/bin/npm Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 30, 31, 32, 33 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0 System Images: android-30 | Google Play Intel x86 Atom, android-33 | Google APIs Intel x86 Atom_64 IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Expo Workflow: bare

Also "@sentry/react-native": "4.9.0", "sentry-expo": "^6.0.0",

Reproducible demo or steps to reproduce from a blank project

Create bare yarn-workspaces project with those versions using that

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.