We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e96c2 commit ce9729eCopy full SHA for ce9729e
src/sentry/utils/sdk.py
@@ -256,7 +256,11 @@ def traces_sampler(sampling_context):
256
257
def before_send_transaction(event, _):
258
# Occasionally the span limit is hit and we drop spans from transactions, this helps find transactions where this occurs.
259
- event["tags"]["spans_over_limit"] = len(event["spans"]) >= 1000
+ num_of_spans = len(event["spans"])
260
+ event["tags"]["spans_over_limit"] = num_of_spans >= 1000
261
+ if not event["measurements"]:
262
+ event["measurements"] = {}
263
+ event["measurements"]["num_of_spans"] = {"value": num_of_spans}
264
return event
265
266
0 commit comments