-
Notifications
You must be signed in to change notification settings - Fork 93
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(ai): Extract AI-related metrics from span data #3412
Conversation
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.
description
is supposed to be the name of the pipeline, so low cardinality as it's not expected to have thousands of pipelines.
224c80a
to
b3c5401
Compare
d5a9297
to
6a73ddd
Compare
@@ -39,6 +39,7 @@ | |||
- Scrub transactions before enforcing quotas. ([#3248](https://github.com/getsentry/relay/pull/3248)) | |||
- Implement metric name based cardinality limits. ([#3313](https://github.com/getsentry/relay/pull/3313)) | |||
- Kafka topic config supports default topic names as keys. ([#3282](https://github.com/getsentry/relay/pull/3282), [#3350](https://github.com/getsentry/relay/pull/3350)) | |||
- Extract AI metrics from spans. ([#3412](https://github.com/getsentry/relay/pull/3412)) |
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.
Needs to be fixed, after the 24.4.0 release
// `exclusive_time_light` excludes transaction tags (and some others) to reduce cardinality. | ||
let exclusive_time_light_condition = (is_db.clone() | ||
| is_ai.clone() |
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.
Are we still interested in extracting this metric for AI spans?
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.
+1, could we document the answer to this question here, even if it was discussed offline? Would be interesting to know.
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.
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.
The intention is to build a view similar to the index page of the various performance modules like database where it surfaces these ai metrics across the project.
6a73ddd
to
9b13b57
Compare
This pull request adds support for ai.total_tokens.used metrics to be pulled from submitted spans