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

[cmd/telemetrygen] Export telemetrygen functions for testing #37044

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Erog38
Copy link
Contributor

@Erog38 Erog38 commented Jan 6, 2025

Description

This PR addresses #36984 in order to open up telemetrygen to be used by golang tests and generate varying amounts of telemetry in code to support use cases which don't rely on external tools.

Testing

Added to the E2E tests to ensure consistent API specs. Additionally had to adjust log and metric exporter instantiation slightly due to a race condition with an err variable.

@Erog38 Erog38 requested review from mx-psi, codeboten and a team as code owners January 6, 2025 23:45
@github-actions github-actions bot added the cmd/telemetrygen telemetrygen command label Jan 6, 2025
@Erog38 Erog38 changed the title feat: Export telemetrygen functions for testing [cmd/telemetrygen] Export telemetrygen functions for testing Jan 6, 2025
@Erog38
Copy link
Contributor Author

Erog38 commented Jan 6, 2025

This goes hand in hand with #37003 in order to help own and maintain this API. I read about chloggen, but haven't used it before so I copied the template and made a version manually. I hope I did that properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/telemetrygen telemetrygen command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants