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

Function New

modules/overrides/userconfigurable/client/client.go:102–108  ·  view source on GitHub ↗
(cfg *Config)

Source from the content-addressed store, hash-verified

100var _ Client = (*clientImpl)(nil)
101
102func New(cfg *Config) (Client, error) {
103 rw, err := initBackend(cfg)
104 if err != nil {
105 return nil, err
106 }
107 return &clientImpl{rw}, nil
108}
109
110func (o *clientImpl) Shutdown() {
111 o.rw.Shutdown()

Callers 2

NewFunction · 0.92

Calls 1

initBackendFunction · 0.85

Tested by 1