Repository navigation
fix(event_manager): Emit TRANSACTION outcomes if metrics are disabled - #41607
Conversation
jjbayer
left a comment
There was a problem hiding this comment.
We must deploy https://github.com/getsentry/getsentry/pull/8935 before we can merge this.
| # Extract metrics for sessions during ingestion. | ||
| "organizations:metrics-extraction": False, | ||
| # Extraction metrics for transactions during ingestion. | ||
| "organizations:transaction-metrics-extraction": False, |
There was a problem hiding this comment.
This was missing entirely. The default was implicitly False.
There was a problem hiding this comment.
Should we remove this flag's fallback to Flagr? Currently it has a True for the fallback.
| # | ||
| # XXX(ja): DO NOT ENABLE UNTIL THIS NOTICE IS GONE. Relay experiences | ||
| # gradual slowdown when this is enabled for too many projects. | ||
| # Extract metrics for sessions during ingestion. |
There was a problem hiding this comment.
The slowdown in Relay was resolved in getsentry/relay#1065
@jjbayer Both could have been deployed together. We have deployed in the meanwhile, though. |
@jan-auer right, forgot that both repos are part of the same deploy for a moment. |
…#41607) In #40507 we started to count transaction metrics in the `transaction` data category and transaction events in the `transaction_indexed` data category. That PR missed that metrics extraction can be disabled, in which case the old behavior of counting events as `transaction` should remain. Relay already implemented this logic since getsentry/relay#1537 based on the metrics extraction flag. This PR adds a feature check to the `organizations:transaction-metrics-extraction` feature, which is the same feature flag used to control Relay's behavior. We also remove the previously used option to sample a percentage of organizations into metrics extraction. The default for this feature remains off (`false`) until metrics components have been added to all deployment targets including self-hosted. Co-authored-by: Matej Minar <[email protected]>
In #40507 we started to count transaction metrics in the
transactiondata category and transaction events in thetransaction_indexeddata category. That PR missed that metrics extraction can be disabled, in which case the old behavior of counting events astransactionshould remain. Relay already implemented this logic since getsentry/relay#1537 based on the metrics extraction flag.This PR adds a feature check to the
organizations:transaction-metrics-extractionfeature, which is the same feature flag used to control Relay's behavior. We also remove the previously used option to sample a percentage of organizations into metrics extraction.The default for this feature remains off (
False) until metrics components have been added to all deployment targets including self-hosted.Note: This requires that the above is set, and that
relay.transaction-metrics-org-sample-rateis no longer used for this.Requires getsentry/getsentry#8935
Fixes getsentry/team-ingest#1