Skip to content

how to exclude some pre and post process time #2768

Answered by cyberw
testwithproduction asked this question in Q&A
Discussion options

You must be logged in to vote

want to leverage the decorator. but want to exclude some expensive pre/post processing code.

Which decorator are you talking about? @task?

The code you posted should do exactly what you say you need, measure the response times of the http get/post, but not the redis calls. Tasks are never measured.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@testwithproduction
Comment options

Answer selected by cyberw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants