feat(prometheus): add metrics to Subsonic API and Plugins (#4266)
* Add prometheus metrics to subsonic and plugins * address feedback, do not log error if operation is not supported * add missing timestamp and client to stats * remove .view from subsonic route * directly inject DataStore in Prometheus, to avoid having to pass it in every call Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org> Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -40,7 +40,7 @@ var _ = Describe("CachingRuntime", func() {
|
||||
|
||||
BeforeEach(func() {
|
||||
ctx = GinkgoT().Context()
|
||||
mgr = createManager(nil)
|
||||
mgr = createManager(nil, nil)
|
||||
// Add permissions for the test plugin using typed struct
|
||||
permissions := schema.PluginManifestPermissions{
|
||||
Http: &schema.PluginManifestPermissionsHttp{
|
||||
@@ -58,6 +58,7 @@ var _ = Describe("CachingRuntime", func() {
|
||||
plugin = newWasmScrobblerPlugin(
|
||||
filepath.Join(testDataDir, "fake_scrobbler", "plugin.wasm"),
|
||||
"fake_scrobbler",
|
||||
mgr,
|
||||
rtFunc,
|
||||
wazero.NewModuleConfig().WithStartFunctions("_initialize"),
|
||||
).(*wasmScrobblerPlugin)
|
||||
|
||||
Reference in New Issue
Block a user