Skip to content

Commit 2668f4e

Browse files
rename DBOPERATION to SPANNAME
1 parent 89c9594 commit 2668f4e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sentry_sdk/consts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ class INSTRUMENTER:
114114
OTEL = "otel"
115115

116116

117-
class DBOPERATION:
118-
COMMIT = "COMMIT"
117+
class SPANNAME:
118+
DB_COMMIT = "COMMIT"
119119

120120

121121
class SPANDATA:

sentry_sdk/integrations/django/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from importlib import import_module
66

77
import sentry_sdk
8-
from sentry_sdk.consts import OP, SPANDATA, DBOPERATION
8+
from sentry_sdk.consts import OP, SPANDATA, SPANNAME
99
from sentry_sdk.scope import add_global_event_processor, should_send_default_pii
1010
from sentry_sdk.serializer import add_global_repr_processor, add_repr_sequence_type
1111
from sentry_sdk.tracing import SOURCE_FOR_STYLE, TransactionSource
@@ -702,10 +702,10 @@ def _commit(self):
702702

703703
with sentry_sdk.start_span(
704704
op=OP.DB,
705-
name=DBOPERATION.COMMIT,
705+
name=SPANNAME.COMMIT,
706706
origin=DjangoIntegration.origin_db,
707707
) as span:
708-
_set_db_data(span, self, DBOPERATION.COMMIT)
708+
_set_db_data(span, self, SPANNAME.COMMIT)
709709
return real_commit(self)
710710

711711
CursorWrapper.execute = execute

0 commit comments

Comments
 (0)