Skip to content

Ability to configure default tags and custom metadata #1491

@fatkodima

Description

@fatkodima

Instead of configuring default tags or custom metadata in multiple places (like in the ApplicationController or ApplicationJob or in other places) via Appsignal.add_tags(foo: 1, bar: 2), allow them to be configured via the config:

Appsignal.configure do |config|
  # can be either a static hash or computed dynamically
  config.tags = lambda do |error|
    { ... }
  end
end

For example, similar to how its done by raygun https://github.com/MindscapeHQ/raygun4ruby?tab=readme-ov-file#tags

Metadata

Metadata

Assignees

Labels

enhancementAn improvement to an existing feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions