Skip to content

Limit the set of controller metrics #16

@Merff

Description

@Merff

Hi!
Is it possible to do that?
I tried smth like that

Yabeda::Rails.on_controller_action do |event, labels|
  next unless Rails.configuration.measured_actions.include? "#{labels[:controller]}##{labels[:action]}"
  ...

and

config.measured_actions = [
      'api/entry#index',
      'api/offers#index'
    ]

but not working, I see all controllers in /metrics

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