-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(onboarding): Add dart onboarding and revamp flutter logs onboarding #97432
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
base: master
Are you sure you want to change the base?
Conversation
- Add dart onboarding page to product - Add logs to verify section for flutter onboarding - Add logs and tracing production selection to dart onboarding
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Sentry.logger.info("User triggered test error", { | ||
'action': SentryLogAttribute.string('test_error'), | ||
});` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential bug: The Dart onboarding guide generates code using `SentryLogAttribute` but falls back to an incompatible SDK version (`7.8.0`), causing compilation errors when the package registry is down.
- Description: When the 'logs' feature is selected in the Dart onboarding documentation, the generated code uses
SentryLogAttribute
. However, if the Sentry package registry is unavailable, the configuration falls back to usingsentry.dart
version7.8.0
. This version predates the introduction ofSentryLogAttribute
(added in v9.0.0), which will cause a compilation error for the user. This breaks the onboarding flow under network or API failure conditions, preventing successful SDK integration. - Suggested fix: Update the fallback version for the
sentry.dart
package to at least9.0.0
to ensure compatibility with the logging features. Alternatively, the code generation for logging should be conditional on the resolved SDK version supporting the feature.
severity: 0.75, confidence: 0.98
Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yoo good work seer! you right!
resolves https://linear.app/getsentry/issue/LOGS-289/add-verify-steps-to-flutter-onboarding
I noticed dart doesn't show up in the in-product onboarding, so added it here. Also then updated everything for logs, and cleaned up some of the code/snippets.