lib/yodeler/client.rb in yodeler-0.1.2 vs lib/yodeler/client.rb in yodeler-0.1.3
- old
+ new
@@ -153,17 +153,19 @@
def format_options(opts)
endpoint_names = opts.delete(:to) || [default_endpoint_name]
tags = opts.delete(:tags)
prefix = opts.delete(:prefix) || default_prefix
timestamp = opts.delete(:timestamp) || timestamp_generator
+ meta = opts.delete(:meta)
{
prefix: prefix,
to: [endpoint_names].flatten.compact,
sample_rate: opts.delete(:sample_rate) || default_sample_rate,
tags: [tags].flatten.compact,
hostname: @hostname,
- timestamp: timestamp
+ timestamp: timestamp,
+ meta: meta
}
end
private