Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AbhiPrasad
Copy link
Member

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.

  • Add dart onboarding page to product
  • Add logs to verify section for flutter onboarding
  • Add logs and tracing production selection to dart onboarding
image image

- Add dart onboarding page to product
- Add logs to verify section for flutter onboarding
- Add logs and tracing production selection to dart onboarding
@AbhiPrasad AbhiPrasad requested a review from buenaflor August 7, 2025 20:43
@AbhiPrasad AbhiPrasad self-assigned this Aug 7, 2025
@AbhiPrasad AbhiPrasad requested a review from a team as a code owner August 7, 2025 20:43
Copy link

linear bot commented Aug 7, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 7, 2025
Copy link

codecov bot commented Aug 7, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
11292 1 11291 10
View the top 1 failed test(s) by shortest run time
PlatformPicker platforms shall be sorted alphabetically
Stack Traces | 0.153s run time
Error: expect(element).toHaveTextContent()

Expected element to have text content:
  Ember
Received:
  Dart
    at toHaveTextContent (.../app/components/platformPicker.spec.tsx:102:24)
    at Array.forEach (<anonymous>)
    at Object.forEach (.../app/components/platformPicker.spec.tsx:101:19)
    at Promise.finally.completed (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1559:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1499:10)
    at _callCircusTest (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1009:40)
    at _runTest (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:949:3)
    at _runTestsForDescribeBlock (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:839:13)
    at _runTestsForDescribeBlock (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:829:11)
    at run (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:757:3)
    at runAndTransformResultsToJestFormat (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/jestAdapterInit.js:1920:21)
    at jestAdapter (.../sentry/node_modules/.pnpm/[email protected][email protected]..../jest-circus/build/runner.js:101:19)
    at runTestInternal (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:272:16)
    at runTest (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:340:7)
    at Object.worker (.../sentry/node_modules/.pnpm/[email protected]..../jest-runner/build/testWorker.js:494:12)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Comment on lines +53 to +55
Sentry.logger.info("User triggered test error", {
'action': SentryLogAttribute.string('test_error'),
});`
Copy link
Contributor

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 using sentry.dart version 7.8.0. This version predates the introduction of SentryLogAttribute (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 least 9.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.

Copy link
Member Author

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!

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant