Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add traces to custom_events #77

Open
joeesteves opened this issue Mar 7, 2024 · 3 comments
Open

Add traces to custom_events #77

joeesteves opened this issue Mar 7, 2024 · 3 comments

Comments

@joeesteves
Copy link

Hey @igorkasyanchuk I've tried this Gem and to be honest I find it really useful so far. I'm using DD on prod but for developing I feel this tool is a great tool. So first thanks for the 💎

I was wondering if it is to complex to add traces to custom event

RailsPerformance.measure("some label", "some namespace") do
   # your code
end

So you can wrap a piece of code on the block and check queries happening there. I can make a PR for this feature, but first want you POV on the feasibility off this.

Thanks

@igorkasyanchuk
Copy link
Owner

RailsPerformance.measure("stats calculation", "reports#index") do

you talking about this?

@joeesteves
Copy link
Author

Yes, that's the one I'm talking about.

@igorkasyanchuk
Copy link
Owner

try to do it

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

No branches or pull requests

2 participants