Skip to content

Default tags overrided user's tags #174

Open
@fffx

Description

@fffx

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)) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions