Skip to content

Track variable usage in telemetry #2593

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

Merged
merged 13 commits into from
Apr 23, 2025
Merged

Track variable usage in telemetry #2593

merged 13 commits into from
Apr 23, 2025

Conversation

shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Mar 31, 2025

Why

This gives us insight into usage patterns of variables by customers. Like how popular are lookup variables or complex variables overall compared to just default variables.

Potential followup: track lookup variable usage per resource type.

Tests

Acceptance tests.

]
],
"experimental": {
"configuration_file_count": 0,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

configuration_file_count and target_count are incorrectly serialized to 0 right now.

  1. configuration_file_count addressed in Track number of YAML configuration files in a bundle #2589
  2. target_count fix is in progress

@shreyas-goenka shreyas-goenka marked this pull request as ready for review March 31, 2025 08:44
@shreyas-goenka shreyas-goenka requested a review from denik April 2, 2025 09:34
@shreyas-goenka shreyas-goenka marked this pull request as draft April 2, 2025 14:57
@shreyas-goenka
Copy link
Contributor Author

On hold, to fix this PR I need to use both the annotation as well as the value itself and see it's complex.

@shreyas-goenka shreyas-goenka marked this pull request as ready for review April 11, 2025 12:27
@@ -319,6 +319,22 @@ func logTelemetry(ctx context.Context, b *bundle.Bundle) {
bundleUuid = b.Config.Bundle.Uuid
}

variableCount := len(b.Config.Variables)
Copy link
Contributor

Choose a reason for hiding this comment

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

followup: this function is already big enough to be moved to a separate file for a better readability

@shreyas-goenka shreyas-goenka added this pull request to the merge queue Apr 23, 2025
Merged via the queue into main with commit 39565c8 Apr 23, 2025
10 checks passed
@shreyas-goenka shreyas-goenka deleted the deploy-var-telemetry branch April 23, 2025 11:12
github-merge-queue bot pushed a commit that referenced this pull request Apr 29, 2025
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