Class: Puma::Plugin::TelemetryToo::Formatters::LogfmtFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/puma/plugin/telemetry_too/formatters/logfmt_formatter.rb

Overview

Logfmt formatter, expects call method accepting telemetry hash

Class Method Summary collapse

Class Method Details

.call(telemetry) ⇒ Object



9
10
11
# File 'lib/puma/plugin/telemetry_too/formatters/logfmt_formatter.rb', line 9

def self.call(telemetry)
  telemetry.map { |k, v| "#{String(k)}=#{v.inspect}" }.join(' ')
end