MCPcopy
hub / github.com/grafana/tempo / writeRuntimeConfig

Method writeRuntimeConfig

cmd/tempo/app/app.go:377–384  ·  view source on GitHub ↗
(w io.Writer, r *http.Request)

Source from the content-addressed store, hash-verified

375}
376
377func (t *App) writeRuntimeConfig(w io.Writer, r *http.Request) error {
378 // Querier and query-frontend services do not run the overrides module
379 if t.Overrides == nil {
380 _, err := w.Write([]byte(fmt.Sprintf("overrides module not loaded in %s\n", t.cfg.Target)))
381 return err
382 }
383 return t.Overrides.WriteStatusRuntimeConfig(w, r)
384}
385
386func (t *App) statusHandler() http.HandlerFunc {
387 return func(w http.ResponseWriter, r *http.Request) {

Callers 1

statusHandlerMethod · 0.95

Calls 2

WriteMethod · 0.65

Tested by

no test coverage detected