Skip to content

Feature request: no-op PrometheusExporter::Client Implementation for test environment #322

@viralpraxis

Description

@viralpraxis

Hey!

I believe it would be beneficial to have a no-op implementation of PrometheusExporter::Client for use in test environments. This would allow us to avoid sending metrics during tests while maintaining the same interface.

I believe we could implement a stub client like the following:

class StubClient < Client
  def send(json); end

  # Additional stub methods can be added here if necessary
end

If this idea is deemed appropriate, I'd be happy to create a pull request with the implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions