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 56e19c9 commit 90cc14fCopy full SHA for 90cc14f
src/sentry/utils/sdk.py
@@ -269,6 +269,13 @@ def before_send(event: Event, hint: Hint) -> Event | None:
269
270
271
def before_send_log(log: Log, _: Hint) -> Log | None:
272
+ attributes = log.get("attributes")
273
+ if attributes is not None:
274
+ # This is a coming from arroyo and creating high cardinality of attribute names like
275
+ # `Partition(topic=Topic(name='...'), index=...)`
276
+ if attributes.get("sentry.message.template") == "New partitions assigned: %r":
277
+ return None
278
+
279
if in_random_rollout("ourlogs.sentry-emit-rollout"):
280
return log
281
return None
0 commit comments