From 1ced048cd8a6f3f4605e1b583d96335e4a6dd9ea Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 4 Aug 2025 17:28:09 +0200 Subject: [PATCH] Make classes public --- sentry_sdk/__init__.py | 2 ++ sentry_sdk/api.py | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sentry_sdk/__init__.py b/sentry_sdk/__init__.py index 7b1eda172a..5f96c6af0c 100644 --- a/sentry_sdk/__init__.py +++ b/sentry_sdk/__init__.py @@ -50,6 +50,8 @@ "start_session", "end_session", "set_transaction_name", + "SpanAttr", + "SpanOp", ] # Initialize the debug support after everything is loaded diff --git a/sentry_sdk/api.py b/sentry_sdk/api.py index a4fb95e9a1..92927edb85 100644 --- a/sentry_sdk/api.py +++ b/sentry_sdk/api.py @@ -4,7 +4,11 @@ from sentry_sdk import tracing_utils, Client from sentry_sdk._init_implementation import init -from sentry_sdk.consts import INSTRUMENTER +from sentry_sdk.consts import ( # noqa: N811 + INSTRUMENTER, + OP as SpanOp, + SPANDATA as SpanAttr, +) from sentry_sdk.scope import Scope, _ScopeManager, new_scope, isolation_scope from sentry_sdk.tracing import NoOpSpan, Transaction, trace from sentry_sdk.crons import monitor @@ -85,6 +89,8 @@ def overload(x): "start_session", "end_session", "set_transaction_name", + "SpanAttr", + "SpanOp", ]