Skip to content

Many console messsages: Tracing is disabled and this 'getSpan' returns null #2855

Description

@scopendo

Platform

Flutter Mobile iOS

Obfuscation

Disabled

Debug Info

Disabled

Doctor

[✓] Flutter (Channel stable, 3.29.2, on macOS 15.4
24E248 darwin-arm64, locale en-GB) [4.5s]
• Flutter version 3.29.2 on channel stable at
/Users/Scott/Developer/fvm/versions/stable
• Upstream repository
https://github.com/flutter/flutter.git
• Framework revision c236373904 (4 weeks ago),
2025-03-13 16:17:06 -0400
• Engine revision 18b71d647a
• Dart version 3.7.2
• DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices
(Android SDK version 35.0.0) [9.2s]
• Android SDK at /Users/Scott/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• ANDROID_HOME = /Users/Scott/Library/Android/sdk
• Java binary at:
/Users/Scott/Library/Java/JavaVirtualMachines/jdk
-17.0.2.jdk/Contents/Home/bin/java
This JDK is specified in your Flutter
configuration.
To change the current JDK, run: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build
17.0.2+8-86)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3)
[2.1s]
• Xcode at
/Applications/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [31ms]
• Chrome at /Applications/Google
Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [31ms]
• Android Studio at
/Users/Scott/Applications/Android
Studio.app/Contents
• Flutter plugin can be installed from:
🔨
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build
21.0.5+-13047016-b750.29)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.5)
[29ms]
• IntelliJ at /Users/Scott/Applications/IntelliJ
IDEA Ultimate.app
• Flutter plugin can be installed from:
🔨
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Connected device (4 available) [6.7s]
• iPad (A16) (mobile) •
A6BFDA52-E693-4D9C-99A2-75261CD4F8EC • ios
• com.apple.CoreSimulator.SimRuntime.iOS-18-4
(simulator)
• macOS (desktop) • macos
• darwin-arm64 • macOS 15.4 24E248 darwin-arm64
• Mac Designed for iPad (desktop) •
mac-designed-for-ipad • darwin
• macOS 15.4 24E248 darwin-arm64
• Chrome (web) • chrome
• web-javascript • Google Chrome 135.0.7049.85

[✓] Network resources [300ms]
• All expected network resources are available.

• No issues found!

Version

8.14.1

Steps to Reproduce

When tracing is disabled, we see the following message a lot in the console output when running debug builds.

[sentry]: [info] Tracing is disabled and this 'getSpan' returns null.

I know that we can disable that by setting options.debug = false but that disables all Sentry logging. Is there a way to have this less frequent as it doesn't seem terribly helpful even in debug mode?

Dependencies

  • sentry: "8.14.1"
  • sentry_dart_plugin: "2.4.1"
  • sentry_dio: "8.14.1"
  • sentry_flutter: "8.14.1"

Expected Result

Less verbosity.

Actual Result

Too many console messages.

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions