-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Fix/unified api fixes and web example #137
Conversation
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.
Very nice to get a web example! 🚀
dart/examples/web_example/README.md
Outdated
|
||
```dart | ||
pub get | ||
webdev serve --release |
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.
What's webdev
? should we propose installing that?
In the Flutter Web example I used python3
which should be installed on macOS and Linux OOTB: https://github.com/getsentry/sentry-dart/blob/main/flutter/example/run.sh#L54
Not true for Windows though. So maybe a comment:
webdev serve --release | |
# Serve the static files with your preferred dev static site server | |
webdev serve --release |
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.
it's the Dart cli to run and build Dart web projects.
To be served from a static site server, the project needs to be build (webdev build ...
) .
webdev serve
is simplest/fastest way to run this example, so I just added a link to the webdev
page.
Co-authored-by: Bruno Garcia <[email protected]>
transaction: '/example/app', | ||
level: SentryLevel.warning, | ||
tags: const <String, String>{'project-id': '7371'}, | ||
extra: const <String, String>{'company-name': 'Dart Inc'}, | ||
fingerprint: const <String>['example-dart'], | ||
userContext: const User( | ||
id: '800', | ||
username: 'first-user', | ||
email: '[email protected]', | ||
ipAddress: '127.0.0.1', | ||
extras: <String, String>{'first-sign-in': '2020-01-01'}), | ||
breadcrumbs: [ | ||
Breadcrumb( | ||
message: 'UI Lifecycle', | ||
timestamp: DateTime.now().toUtc(), | ||
category: 'ui.lifecycle', | ||
type: 'navigation', | ||
data: {'screen': 'MainActivity', 'state': 'created'}, | ||
level: SentryLevel.info) | ||
], |
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.
why are they removed?
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.
I moved back fields which are "merged" with scope
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.
LGTM
📢 Type of change
📜 Description
💡 Motivation and Context
verify everything working correctly after the unified refactoring
💚 How did you test it?
📝 Checklist
🔮 Next steps