influxdb-rails icon indicating copy to clipboard operation
influxdb-rails copied to clipboard

Default tags overrided user's tags

Open fffx opened this issue 4 years ago • 1 comments

When I use InfluxDB::Rails.instrument in a background process, I would like to override the default location

InfluxDB::Rails.instrument "expensive_operation", tags: {location: "Foo#bar }, values: { } do
  expensive_operation
end

but the location tag will override by raw. Could consider change config.tags_middleware.call(tags.merge(default_tags)) to config.tags_middleware.call(default_tags.merge(tags)) ?

fffx avatar Jul 21 '21 04:07 fffx

I think this makes sense. I can change it.

ChrisBr avatar Jul 21 '21 12:07 ChrisBr