File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1291,8 +1291,7 @@ def __init__(
12911291 self ._active = active
12921292
12931293 self ._otel_span .set_attribute (SentrySpanAttribute .ORIGIN , origin )
1294- if op is not None :
1295- self .op = op
1294+ self .op = op
12961295 self .description = description
12971296 if status is not None :
12981297 self .set_status (status )
@@ -1444,10 +1443,11 @@ def op(self):
14441443
14451444 @op .setter
14461445 def op (self , value ):
1447- # type: (str) -> None
1446+ # type: (Optional[ str] ) -> None
14481447 from sentry_sdk .integrations .opentelemetry .consts import SentrySpanAttribute
14491448
1450- self ._otel_span .set_attribute (SentrySpanAttribute .OP , value )
1449+ if value is not None :
1450+ self ._otel_span .set_attribute (SentrySpanAttribute .OP , value )
14511451
14521452 @property
14531453 def name (self ):
You can’t perform that action at this time.
0 commit comments