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

[receiver/googlecloudmonitoringreceiver] Implement Unit Tests for Core Functionality #36815

Open
scaletech-milan opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@scaletech-milan
Copy link

Component(s)

receiver/googlecloudmonitoring

Is your feature request related to a problem? Please describe.

A new receiver, googlecloudmonitoringreceiver, has been created to ingest and process metrics from Google Cloud Monitoring. The initial implementation spans multiple PRs, covering the core functionality and setup:

The component files can be found here.

To ensure robustness and meet contribution standards, unit tests need to be implemented in a separate PR.

Describe the solution you'd like

The unit tests should be designed to cover:

  • Separate Testing for Core Functions: Test the Start and Scrape functions individually to ensure their correct functionality in isolation.
  • End-to-End Flow Testing: Simulate the entire receiver lifecycle, calling both functions together to validate the complete flow of metric ingestion and processing.
  • Maximizing Coverage: Cover as many edge cases, input variations, and scenarios as possible to ensure robust testing.

Describe alternatives you've considered

No response

Additional context

Unit tests are essential for ensuring the reliability of the receiver and maintaining OpenTelemetry's quality standards.

@scaletech-milan scaletech-milan added enhancement New feature or request needs triage New item requiring triage labels Dec 13, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

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

No branches or pull requests

2 participants