MCPcopy Index your code
hub / github.com/cortexproject/cortex / writeMessage

Function writeMessage

pkg/compactor/compactor_http.go:28–37  ·  view source on GitHub ↗
(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

26)
27
28func writeMessage(w http.ResponseWriter, message string) {
29 w.WriteHeader(http.StatusOK)
30 err := compactorStatusPageTemplate.Execute(w, struct {
31 Message string
32 }{Message: message})
33
34 if err != nil {
35 level.Error(util_log.Logger).Log("msg", "unable to serve compactor ring page", "err", err)
36 }
37}
38
39func (c *Compactor) RingHandler(w http.ResponseWriter, req *http.Request) {
40 if !c.compactorCfg.ShardingEnabled {

Callers 1

RingHandlerMethod · 0.70

Calls 2

LogMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected