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

Method getInstance

modules/livestore/live_store.go:690–695  ·  view source on GitHub ↗
(tenantID string)

Source from the content-addressed store, hash-verified

688}
689
690func (s *LiveStore) getInstance(tenantID string) (*instance, bool) {
691 s.instancesMtx.RLock()
692 defer s.instancesMtx.RUnlock()
693 inst, ok := s.instances[tenantID]
694 return inst, ok
695}
696
697func (s *LiveStore) getOrCreateInstance(tenantID string) (*instance, error) {
698 s.instancesMtx.RLock()

Calls

no outgoing calls