Skip to content

Commit 859efe2

Browse files
committed
ref(types): make TransactionContext.data field optional in
SamplingContext
1 parent 8fb2d0b commit 859efe2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sentry_sdk/_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class SDKInfo(TypedDict):
310310
"timestamp": Optional[datetime],
311311
"origin": str,
312312
"tags": NotRequired[dict[str, str]],
313-
"data": dict[str, Any],
313+
"data": NotRequired[dict[str, Any]],
314314
"name": str,
315315
"source": TransactionSource,
316316
"sampled": Optional[bool],
@@ -333,6 +333,7 @@ class SDKInfo(TypedDict):
333333
"aws_event": NotRequired[Any],
334334
"aws_context": NotRequired[Any],
335335
"gcp_env": NotRequired[dict[str, Any]],
336+
"gcp_event": NotRequired[Any],
336337
},
337338
)
338339
SamplingContext = Union[_SamplingContextTyped, dict[str, Any]]

0 commit comments

Comments
 (0)