Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions docs/platforms/python/tracing/span-lifecycle/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ To add custom performance data to your application, you need to add custom instr

<PlatformContent includePath="enriching-events/import" />

There are two main approaches to creating spans in Python:

- [Using the context manager](#using-the-context-manager): Creates a span with an automatic lifecycle (recommended).
- [Manual span creation](#creating-spans-manually): Gives you more control over the span's lifecycle.

## Span Lifecycle

In Python, spans are typically created using a context manager, which automatically manages the span's lifecycle. When you create a span using a context manager, the span automatically starts when entering the context and ends when exiting it. This is the recommended approach for most scenarios.
Expand Down