File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
121121class SPANDATA :
Original file line number Diff line number Diff line change 55from importlib import import_module
66
77import sentry_sdk
8- from sentry_sdk .consts import OP , SPANDATA , DBOPERATION
8+ from sentry_sdk .consts import OP , SPANDATA , SPANNAME
99from sentry_sdk .scope import add_global_event_processor , should_send_default_pii
1010from sentry_sdk .serializer import add_global_repr_processor , add_repr_sequence_type
1111from 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
You can’t perform that action at this time.
0 commit comments