Skip to content

Commit f73e28b

Browse files
use .value attribute for TransactionSource enum
1 parent a164341 commit f73e28b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/integrations/grpc/aio/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def wrapped(request: "Any", context: "ServicerContext") -> "Any":
6666
name=name,
6767
attributes={
6868
"sentry.op": OP.GRPC_SERVER,
69-
"sentry.span.source": TransactionSource.CUSTOM,
69+
"sentry.span.source": TransactionSource.CUSTOM.value,
7070
"sentry.origin": SPAN_ORIGIN,
7171
},
7272
parent_span=None,

sentry_sdk/integrations/grpc/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def behavior(request: "Message", context: "ServicerContext") -> "Message":
5656
name=name,
5757
attributes={
5858
"sentry.op": OP.GRPC_SERVER,
59-
"sentry.span.source": TransactionSource.CUSTOM,
59+
"sentry.span.source": TransactionSource.CUSTOM.value,
6060
"sentry.origin": SPAN_ORIGIN,
6161
},
6262
parent_span=None,

0 commit comments

Comments
 (0)