You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the default metrics are not registered in the registry passed in the options (considering the descriptions of the options in the README this should happen).
It seems this is being caused by a conflict between generateContext and toggleDefaultMetrics:
the destructuring of defaultMetricsOptions overwrites the register, which points to the register passed in the options of createPrometheusExporterPlugin.
Is that expected? If it is not, I am willing to open a PR to fix this behavior.
The text was updated successfully, but these errors were encountered:
If I create a plugin with:
the default metrics are not registered in the registry passed in the options (considering the descriptions of the options in the README this should happen).
It seems this is being caused by a conflict between
generateContext
andtoggleDefaultMetrics
:the register reference used in
defaultMetricsOptions
points to the register imported fromand then when toggleDefaultMetrics is called
the destructuring of defaultMetricsOptions overwrites the register, which points to the register passed in the options of
createPrometheusExporterPlugin
.Is that expected? If it is not, I am willing to open a PR to fix this behavior.
The text was updated successfully, but these errors were encountered: