Skip to content

Commit

Permalink
Improved documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 4, 2023
1 parent 9735675 commit 4696d03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bake/metrics/capture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
# Released under the MIT License.
# Copyright, 2023, by Samuel Williams.

# Enable capturing metrics.
def capture
ENV['METRICS_BACKEND'] = 'metrics/backend/capture'
require 'metrics'
end

# Generate a list of metrics using the document backend.
# Generate a list of metrics that have been captured.
def list
Metrics::Backend::Capture.metrics.sort_by!{|metric| metric.name}
end

0 comments on commit 4696d03

Please sign in to comment.