You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/python/integrations/aiohttp/index.mdx
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,21 @@ It takes a couple of moments for the data to appear in [sentry.io](https://sentr
62
62
-_The AIOHTTP integration currently does not attach the request body_, see [GitHub issue](https://github.com/getsentry/sentry-python/issues/220).
63
63
- Logging with any logger will create breadcrumbs when the [Logging](/platforms/python/integrations/logging/) integration is enabled (done by default).
64
64
65
+
### Tracing
66
+
67
+
A set of predefined span attributes will be attached to AIOHTTP transactions by default. These can also be used for sampling since they will also be accessible via the `sampling_context` dictionary in the [`traces_sampler`](/platforms/python/configuration/options/#traces_sampler).
68
+
69
+
-`url.path`
70
+
-`url.query`
71
+
-`url.scheme`
72
+
-`url.full`
73
+
-`http.request.method`
74
+
-`http.request.header.{header}`
75
+
-`server.address`
76
+
-`server.port`
77
+
78
+
These attributes will also be sent to Sentry. If you don't want that, you can filter them out using a custom [`traces_sampler`](/platforms/python/configuration/options/#before_send) function.
79
+
65
80
## Options
66
81
67
82
By adding `AioHttpIntegration` to your `sentry_sdk.init()` call explicitly, you can set options for `AioHttpIntegration` to change its behavior:
0 commit comments