We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7937b41 commit 4f8a369Copy full SHA for 4f8a369
sentry_sdk/tracing.py
@@ -535,7 +535,7 @@ def set_status(self, status):
535
otel_status = StatusCode.ERROR
536
otel_description = status
537
538
- if _OTEL_VERSION is not None and _OTEL_VERSION >= (1, 12, 0):
+ if _OTEL_VERSION is None or _OTEL_VERSION >= (1, 12, 0):
539
self._otel_span.set_status(otel_status, otel_description)
540
else:
541
self._otel_span.set_status(Status(otel_status, otel_description))
0 commit comments