-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
DLQ testing with options feature flag #82283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/sentry/ingest/consumer/processors.py
Did you find this useful? React with a 👍 or 👎 |
consumer_type == ConsumerType.Transactions or data.get("type") == "transaction" | ||
) and options.get("transactions.stale_dlq_enabled"): | ||
# check timestamp | ||
timestamp = message.get("timestamp") if message.get("timestamp") else start_time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if message.get('timesstamp") works need to double check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it'll be data.get("timestamp")
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i found in the schema repo that "timestamp" field is on the same level as "type". And in this file the field type
is being accesed like data.get("type")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
# check timestamp | ||
timestamp = message.get("timestamp") if message.get("timestamp") else start_time | ||
|
||
if timestamp and datetime.datetime.now() - timestamp > options.get( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these times probably need to be normalized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean normalized?
raise InvalidMessage( | ||
message.get("partition"), | ||
message.get("offset"), | ||
reason="Stale Message", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not do a space? idk spaces usually scare me in strings
consumer_type == ConsumerType.Transactions or data.get("type") == "transaction" | ||
) and options.get("transactions.stale_dlq_enabled"): | ||
# check timestamp | ||
timestamp = message.get("timestamp") if message.get("timestamp") else start_time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it'll be data.get("timestamp")
instead
consumer_type == ConsumerType.Transactions or data.get("type") == "transaction" | ||
) and options.get("transactions.stale_dlq_enabled"): | ||
# check timestamp | ||
timestamp = message.get("timestamp") if message.get("timestamp") else start_time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i found in the schema repo that "timestamp" field is on the same level as "type". And in this file the field type
is being accesed like data.get("type")
closing because #82322 |
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.