Skip to content

Commit be5a489

Browse files
authored
Make decorator code snippet more visible (#7487)
1 parent 30976f4 commit be5a489

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/platforms/python/common/performance/instrumentation/custom-instrumentation.mdx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ If you want to have more fine-grained performance monitoring, you can add child
3939

4040
Calling a `sentry_sdk.start_span()` will find the current active transaction and attach the span to it.
4141

42-
```python {tabTitle:Context Manager}
42+
### Using a Context Manager
43+
44+
```python
4345
import sentry_sdk
4446

4547
def eat_slice(slice):
@@ -53,7 +55,9 @@ def eat_pizza(pizza):
5355

5456
```
5557

56-
```python {tabTitle:Decorator}
58+
### Using a Decorator
59+
60+
```python
5761
import sentry_sdk
5862

5963
@sentry_sdk.trace
@@ -71,7 +75,9 @@ def eat_pizza(pizza):
7175

7276
Spans can be nested to form a span tree. If you'd like to learn more, read our [distributed tracing](/product/sentry-basics/tracing/distributed-tracing/) documentation.
7377

74-
```python {tabTitle:Context Manager}
78+
### Using a Context Manager
79+
80+
```python
7581
import sentry_sdk
7682

7783
def chew():
@@ -89,7 +95,9 @@ def eat_slice(slice):
8995

9096
```
9197

92-
```python {tabTitle:Decorator}
98+
### Using a Decorator
99+
100+
```python
93101
import sentry_sdk
94102

95103
@sentry_sdk.trace

0 commit comments

Comments
 (0)