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

Telemetry for success/failure of AI-based metrics view generation #4296

Merged
merged 6 commits into from
Mar 11, 2024

Conversation

begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented Mar 11, 2024

@begelundmuller begelundmuller added the blocker A release blocker issue that should be resolved before a new release label Mar 11, 2024
if err != nil {
attrs = append(attrs, attribute.String("error", err.Error()))
}
s.activity.Record(ctx, activity.EventTypeLog, "ai_generated_metrics_view_yaml", attrs...)
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be recorded as a metric and allowed in a filterSink as

		sink := activity.NewFilterSink(intakeSink, func(e activity.Event) bool {
			return e.EventType != activity.EventTypeMetric || name == "ai_generated_metrics_view_yaml_elapsed_ms"
		})

not very elegant as it requires to maitain a list of allowed metric names. but ideally, we anyway need to create a list of constants that represent all registered application metric names so that it is possible to quickly check if there are any duplicate names
so it is up to you, i'm fine with the existing solution

@begelundmuller begelundmuller merged commit 980577a into main Mar 11, 2024
4 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/ai-metrics branch March 11, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker A release blocker issue that should be resolved before a new release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants