Skip to content

Is it safe to create a new metric on every request? #3616

Answered by legendecas
nwalters512 asked this question in Q&A
Discussion options

You must be logged in to vote

Meters and metric instruments are safe to be retrieved multiple times with identical configurations (names, types, etc.). However, it is still recommended to keep a reference to their instances as de-duplication comes with performance penalties.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nwalters512
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