Skip to content

Commit b58a1ce

Browse files
authored
fix(python): tracing wording improvements (#12139)
1 parent 1de74e7 commit b58a1ce

File tree

1 file changed

+2
-3
lines changed
  • docs/platforms/python/tracing/instrumentation/custom-instrumentation

1 file changed

+2
-3
lines changed

docs/platforms/python/tracing/instrumentation/custom-instrumentation/index.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Custom Instrumentation
33
description: "Learn how to capture performance data on any action in your app."
44
---
55

6-
The Sentry SDK for Python does a very good job of auto instrumenting your application. If you use one of the popular frameworks, we've got you covered because everything is instrumented out of the box. The Sentry SDK will check your installed Python packages and auto enable the matching SDK integrations.
6+
The Sentry SDK for Python does a very good job of auto instrumenting your application. If you use one of the popular frameworks, we've got you covered because well-known operations like HTTP calls and database queries will be instrumented out of the box. The Sentry SDK will also check your installed Python packages and auto enable the matching SDK integrations. If you want to enable tracing in a piece of code that performs some other operations, add the @sentry_sdk.trace decorator"
77

88
## Add a Transaction
99

@@ -98,6 +98,7 @@ def eat_pizza(pizza):
9898
eat_slice(pizza.slices.pop())
9999
span.finish()
100100
```
101+
101102
<Alert title="Changed in 2.15.0" level="info">
102103

103104
The parameter `name` in `start_span()` used to be called `description`. In version 2.15.0 `description` was deprecated and from 2.15.0 on, only `name` should be used. `description` will be removed in `3.0.0`.
@@ -130,7 +131,6 @@ The parameter `name` in `start_span()` used to be called `description`. In versi
130131

131132
</Alert>
132133

133-
134134
### Using a Decorator
135135

136136
```python
@@ -177,7 +177,6 @@ When you create your span manually, make sure to call `span.finish()` after the
177177

178178
To avoid having custom performance instrumentation code scattered all over your code base, pass a parameter <PlatformIdentifier name="functions-to-trace" /> to your `sentry_sdk.init()` call.
179179

180-
181180
```python
182181
import sentry_sdk
183182

0 commit comments

Comments
 (0)