MCPcopy Create free account
hub / github.com/bytebase/bytebase / Handle

Method Handle

backend/common/log/context.go:57–62  ·  view source on GitHub ↗
(ctx context.Context, record slog.Record)

Source from the content-addressed store, hash-verified

55}
56
57func (h *contextHandler) Handle(ctx context.Context, record slog.Record) error {
58 for _, attr := range attrsFromContext(ctx) {
59 record.AddAttrs(attr)
60 }
61 return h.handler.Handle(ctx, record)
62}
63
64func (h *contextHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
65 return &contextHandler{handler: h.handler.WithAttrs(attrs)}

Callers

nothing calls this directly

Calls 1

attrsFromContextFunction · 0.85

Tested by

no test coverage detected