Skip to content

Commit 186718e

Browse files
committed
Add trace_lifecycle experimental opt
1 parent 17284be commit 186718e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sentry_sdk/_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,3 +336,5 @@ class SDKInfo(TypedDict):
336336
)
337337

338338
HttpStatusCodeRange = Union[int, Container[int]]
339+
340+
TraceLifecycleMode = Literal["static", "stream"]

sentry_sdk/consts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class CompressionAlgo(Enum):
5656
Metric,
5757
ProfilerMode,
5858
TracesSampler,
59+
TraceLifecycleMode,
5960
TransactionProcessor,
6061
)
6162

@@ -81,6 +82,7 @@ class CompressionAlgo(Enum):
8182
"before_send_log": Optional[Callable[[Log, Hint], Optional[Log]]],
8283
"enable_metrics": Optional[bool],
8384
"before_send_metric": Optional[Callable[[Metric, Hint], Optional[Metric]]],
85+
"trace_lifecycle": Optional[TraceLifecycleMode],
8486
},
8587
total=False,
8688
)

0 commit comments

Comments
 (0)