This repository was archived by the owner on Dec 11, 2023. It is now read-only.
This repository was archived by the owner on Dec 11, 2023. It is now read-only.
Fake Metrics Client #113
Open
Description
Is there already or the possibility of a fake metrics client?
I want to be able to use librato on development the same way I use it in production without having the hassle of checking the environment condition on each request.
If there's not, how are people working around this?
Would this be a desirable addition to this gem? For example:
if ENV['RACK_ENV'] != 'production'
Librato::Metrics.client = Librato::FakeClient.new(logger: ENV['RACK_ENV'] == 'test' ? nil : $stdout)
end
In the example above we define a fake client that logs the data submissions on development and nothing on test, replacing the 'real' client outside the production environment.
Metadata
Metadata
Assignees
Labels
No labels