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: Add billing categorization to cody events 2 #2345

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Conversation

dadlerj
Copy link
Member

@dadlerj dadlerj commented Sep 24, 2024

@dadlerj
Copy link
Member Author

dadlerj commented Sep 25, 2024

Hey @pkukielka ! I'm not sure how to diagnose this—when I run ./gradlew check and ./gradlew integrationTest locally, they both pass with no errors. I don't see any issues on main either, so it's not like I just need to rebase...

I'd love any recommendations. Thank you. Again, feel free to reassign if there's someone else I should talk to!

@dadlerj dadlerj marked this pull request as ready for review September 25, 2024 16:35
}

data class BillingMetadata(val product: BillingProduct, val category: BillingCategory)

data class TelemetryEventParameters(
Copy link
Contributor

Choose a reason for hiding this comment

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

btw, this protocol class is not generated

interface TelemetryEvent {
    feature: string
    action: string
    parameters?:
        | TelemetryEventParameters<{ [key: string]: number }, BillingProduct, BillingCategory>
        | undefined
        | null
}

It looks like our generating tool does not support fields like parameters in this case. I'd be nice to get it working.

Copy link
Contributor

@mkondratek mkondratek left a comment

Choose a reason for hiding this comment

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

hi @dadlerj 👋 sorry for the delay 🙇

I rebased your branch. I tried your changes. The event are properly sent to the agent 🟢

@mkondratek mkondratek merged commit 873011e into main Oct 4, 2024
6 of 7 checks passed
@mkondratek mkondratek deleted the tel-billing branch October 4, 2024 13:27
@dadlerj
Copy link
Member Author

dadlerj commented Oct 4, 2024

Thank you @mkondratek !

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.

2 participants