Skip to content
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

feat(metrics): Implement generic metric extraction for transactions #2257

Merged
merged 4 commits into from
Jun 28, 2023

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jun 27, 2023

Adds an initial version of generic metrics extraction based on the
previously added schema (#2252). It is limited to transaction events and
evaluates conditions with the fields supported by FieldValueProvider.

Since generic metric extraction can operate on all item types, the a new
top-level processing function is added that runs before the more
specific transaction metric extraction. In the future, we will convert
conditional tagging logic and even transaction metric extraction
configuration to the new format when the project config is read, so that
the old functions can be removed.

Since the new function supports only transactions, it reuses the
existing transaction_metrics_extracted flag from the processing state.
This is subject to change in a follow-up.

Closes #2257

@jan-auer jan-auer self-assigned this Jun 27, 2023
@jan-auer jan-auer marked this pull request as ready for review June 27, 2023 14:29
@jan-auer jan-auer requested a review from a team June 27, 2023 14:29
@jan-auer jan-auer merged commit eec334a into master Jun 28, 2023
@jan-auer jan-auer deleted the feat/metric-extraction-poc branch June 28, 2023 07:58
jan-auer added a commit that referenced this pull request Jun 28, 2023
* master:
  feat(metrics): Implement generic metric extraction for transactions (#2257)
Comment on lines +2148 to +2150
// XXX: Since we only support transactions, we can skip generic metric extraction from
// events if transaction metrics have been extracted before.
if !state.transaction_metrics_extracted {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this doesn't consider external relays for now, but I think that's ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants