Skip to content

Anyway to make meter.shutdown() invoke prometheusExporter.shutdown()? #1839

Answered by vmarchaud
naseemkullah asked this question in Q&A
Discussion options

You must be logged in to vote

The spec doesn't seems to suggest this, all details for 2) are inside.
For 1) i think you should export a shutdown method that know which components has been used and call their shutdown.

Generally i think it should be possible to have two different meter (one registered in the API and one manually managed) that use the same exporter, so having this behavior would cause both provider to fails.

Replies: 1 comment 1 reply

Comment options

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

naseemkullah Jan 17, 2021
Collaborator Author

Answer selected by naseemkullah
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