Skip to content

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

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

Closed
scopendo opened this issue Apr 11, 2025 · 2 comments
Closed
Assignees
Labels
bug dart Pull requests that update Dart code

Comments

@scopendo
Copy link

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

@buenaflor
Copy link
Contributor

buenaflor commented Apr 11, 2025

@scopendo hey, starting with the next major we will only log warning messages by default when debug is true and allow to override this with options.diagnosticLevel = SentryLevel.info for example and we will clean up some of the logging as well.

diagnosticLevel is available now but there is currently a bug that is not overriding the log level properly. We'll fix that in the next release 8.14.2 then you'll be able to set the diagnosticLevel to your preference as well

but yes we agree that currently there is too much logging happening

@buenaflor buenaflor self-assigned this Apr 11, 2025
@buenaflor buenaflor moved this from Needs Discussion to Todo in [DEPRECATED] Mobile SDKs Apr 11, 2025
@buenaflor buenaflor mentioned this issue Apr 15, 2025
6 tasks
@stephanie-anderson stephanie-anderson added the dart Pull requests that update Dart code label Apr 16, 2025 — with Linear
@buenaflor
Copy link
Contributor

We've released improvements in 8.14.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dart Pull requests that update Dart code
Projects
Archived in project
Archived in project
Development

No branches or pull requests

3 participants