File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sentry_sdk/integrations/opentelemetry Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import sentry_sdk
19
19
from sentry_sdk .utils import Dsn
20
- from sentry_sdk .consts import SPANSTATUS
20
+ from sentry_sdk .consts import SPANSTATUS , OP
21
21
from sentry_sdk .tracing import get_span_status_from_http_code , DEFAULT_SPAN_ORIGIN
22
22
from sentry_sdk .tracing_utils import Baggage
23
23
from sentry_sdk .integrations .opentelemetry .consts import SentrySpanAttribute
@@ -182,7 +182,7 @@ def span_data_for_db_query(span):
182
182
# type: (ReadableSpan) -> OtelExtractedSpanData
183
183
span_attributes = span .attributes or {}
184
184
185
- op = "db"
185
+ op = span_attributes . get ( SentrySpanAttribute . OP , OP . DB )
186
186
187
187
statement = span_attributes .get (SpanAttributes .DB_STATEMENT , None )
188
188
statement = cast ("Optional[str]" , statement )
You can’t perform that action at this time.
0 commit comments