Skip to content

Conversation

@raivil
Copy link
Contributor

@raivil raivil commented Aug 5, 2020

@Envek
This is a small improvement to use the custom tags on existing metrics for Rails.
This should work well with append_info_to_payload from Rails. https://api.rubyonrails.org/classes/ActionController/Instrumentation.html#method-i-append_info_to_payload

I'd like to hear your thoughts on it.

I tested it only with Rails 6.0.3.2.

Best,

Copy link
Member

@Envek Envek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! Could you please add some example to README, maybe?

Add the custom tags to existing metrics by retrieving them from the payload.
@raivil
Copy link
Contributor Author

raivil commented Aug 5, 2020

@Envek added a simple example.

@Envek Envek merged commit bd03daa into yabeda-rb:master Aug 6, 2020
@Envek
Copy link
Member

Envek commented Aug 6, 2020

Thank you! Released in v0.6.0

@raivil raivil deleted the patch-1 branch August 6, 2020 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants