Skip to content

Commit ef843a0

Browse files
add name fallback
1 parent 7bd12ae commit ef843a0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sentry_sdk/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def _serialized_v1_span_to_serialized_v2_span(
175175

176176
if "description" in span:
177177
res["name"] = span["description"]
178+
elif (
179+
"op" in span
180+
): # fallback based on observed downstream fallback for transactions
181+
res["name"] = span["op"]
178182

179183
if "start_timestamp" in span:
180184
start_timestamp = None

0 commit comments

Comments
 (0)