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

Make the metric optional for the timed decorator. #71

Merged
merged 1 commit into from
Jul 23, 2015

Conversation

clokep
Copy link
Contributor

@clokep clokep commented Jul 17, 2015

If the metric is NOT provided, it defaults to the function's module and name.

I find this convenient to wrap some functions where the metric is simply going to be the name of the function, in particular to wrap celery tasks.

I discussed this briefly with @remh on IRC and he suggested I put up a PR and we can discuss it.

If the metric is NOT provided, it defaults to the function's module
and name.
@yannmh
Copy link
Member

yannmh commented Jul 23, 2015

Great feature ! Thanks again @clokep.

Merging it for the next release.

yannmh added a commit that referenced this pull request Jul 23, 2015
Make the metric optional for the timed decorator.
@yannmh yannmh merged commit 7cb27be into DataDog:master Jul 23, 2015
@clokep clokep deleted the default-metric-timed branch July 24, 2015 07:47
@clokep
Copy link
Contributor Author

clokep commented Jul 24, 2015

Thanks! 😄

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