Logs, Metrics, Tracing
IfSentient opened this issue · comments
An issue of two parts:
- The library code (all packages that aren't
cmd/*
andcodegen
) should have hooks for accepting interfaces for loggers, metrics, and tracing. It should be simple for a user of the SDK to get logs or metrics from underlying systems, such as the kubernetes client, informers, or OpinionatedWatchers. - The boilerplate code generated with
grafana-app-sdk project component add
should include pre-built solutions for logging, metrics, and traces.
We're working on a app using this SDK and storing objects with the SimpleStore[T] - we wondered if the app platform could expose counter metrics to track CRUD operations for our typed objects? These kind of CRUD metrics would give a sense of how our app is being used (Daily Active Users, etc.).
Since our app is currently running as a backend plugin, we can't get metrics scraped directly, but wondered if there was some piece of infrastructure in the app platform that might be able to expose these kinds of counters for us (and for other kinds, rather than have each kind's controller do it from scratch).
I'm not sure this request is in-scope for your issue #24 here, but thought I'd elaborate.
Marking this as closed since the SDK has been instrumented.