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: collect metrics for when t2viz triggered #510

Merged
merged 3 commits into from
Mar 17, 2025

Conversation

ruanyl
Copy link
Member

@ruanyl ruanyl commented Mar 17, 2025

Description

Added a new metrics for when text to visualization is triggered.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test.
  • New functionality has user manual doc added.
  • Commits are signed per the DCO using --signoff.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
ruanyl added 2 commits March 17, 2025 10:24
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
@@ -254,9 +254,17 @@ export const Text2Viz = () => {
dataSourceId: indexPattern.dataSourceRef?.id,
});

if (usageCollection) {
usageCollection.reportUiStats(
Copy link
Member

Choose a reason for hiding this comment

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

Better to have a UT for this I think, easily missing for metrics.

@SuZhou-Joe SuZhou-Joe merged commit c41b3c6 into opensearch-project:main Mar 17, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants