-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Feat: Document Dio for Dart/Flutter #4857
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sentry/sentry-docs/3mrM3Wdjy3DzEFfXxPApmFFwpnpd |
cc @ueman |
@@ -22,6 +22,16 @@ When the HTTP request throws an `Exception`, Sentry's SDK associates this except | |||
|
|||
For more information see our [SentryHttpClient integration](/platforms/dart/configuration/integrations/http-integration/#performance-monitoring-for-http-requests). | |||
|
|||
### Dio Library Instrumentation |
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 a dup from the Dart integration, but it's important that Fluter users see it too, is there a way to not duplicate this?
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.
You could move this content into an include and drop it on both pages so the content remains consistent. But you'll still need to have two container pages.
|
||
### Dio Library Instrumentation | ||
|
||
The Dio instrumentation, once added the Dio integration feature, starts a span out of the active span bound to the scope for each HTTP Request. The SDK sets the span `operation` to `http.client` and `description` to request `$method and $URL`; for example, `GET https://sentry.io`. |
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.
The Dio instrumentation, once added the Dio integration feature, starts a span out of the active span bound to the scope for each HTTP Request. The SDK sets the span `operation` to `http.client` and `description` to request `$method and $URL`; for example, `GET https://sentry.io`. | |
The Dio instrumentation, once added the Dio integration feature, starts a span out of the active span bound to the scope for each HTTP Request. The SDK sets the span `operation` to `http.client` and `description` to request `$method $URL`; for example, `GET https://sentry.io`. |
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 also provides spans for (de)serialization. See https://github.com/getsentry/sentry-dart/blob/main/dio/lib/src/sentry_transformer.dart
…c-instrumentation.mdx Co-authored-by: Jonas Uekötter <[email protected]>
release-registry/craft PRs merged, next release will include the package. |
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.
since we'll return the fallback value until release registry has a release in it, this PR is no longer blocked so removing the Draft tag
src/platforms/dart/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
…c-instrumentation.mdx Co-authored-by: Bruno Garcia <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
src/platforms/flutter/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
…atic-instrumentation.mdx
src/platforms/flutter/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
…atic-instrumentation.mdx
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.
There was one sentence that wasn't clear to me. If my edit is incorrect, ping me so I can circle back. Otherwise, just minor wording and style fixes.
src/platforms/dart/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
src/platforms/dart/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
src/platforms/dart/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
src/platforms/dart/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
src/platforms/dart/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
src/platforms/flutter/common/performance/instrumentation/automatic-instrumentation.mdx
Outdated
Show resolved
Hide resolved
…c-instrumentation.mdx Co-authored-by: Isabel <[email protected]>
…c-instrumentation.mdx Co-authored-by: Isabel <[email protected]>
…c-instrumentation.mdx Co-authored-by: Isabel <[email protected]>
…c-instrumentation.mdx Co-authored-by: Isabel <[email protected]>
Co-authored-by: Isabel <[email protected]>
Co-authored-by: Isabel <[email protected]>
Closes #4602
Merge after: getsentry/sentry-dart#791
and getsentry/sentry-release-registry#67