func (ssm *SpanProcessor) spanStoreForName(name string) *sampleStore {
	if value, ok := ssm.spanSampleStores.Load(name); ok {
		return value.(*sampleStore)
	}
	return nil
}
spanStoreForName returns the sampleStore for the given name.

It returns nil if it doesn't exist.
package zpages
import (
	"context"
	"sync"
	"go.opentelemetry.io/otel/codes"
	sdktrace "go.opentelemetry.io/otel/sdk/trace"
	"go.opentelemetry.io/otel/trace"
)
var _ sdktrace.SpanProcessor = (*SpanProcessor)(nil)
type perMethodSummary struct {
	activeSpans  int
	latencySpans []int
	errorSpans   int
}
type SpanProcessor struct {
	activeSpansStore sync.Map
	spanSampleStores sync.Map
}
func NewSpanProcessor() *SpanProcessor {
	return &SpanProcessor{}
}
func (ssm *SpanProcessor) OnStart(_ context.Context, span sdktrace.ReadWriteSpan) {
	sc := span.SpanContext()
	if sc.IsValid() {
		ssm.activeSpansStore.Store(spanKey(sc), span)
	}
}
func (ssm *SpanProcessor) OnEnd(span sdktrace.ReadOnlySpan) {
	sc := span.SpanContext()
	if sc.IsValid() {
		ssm.activeSpansStore.Delete(spanKey(sc))
	}
	name := span.Name()
	value, ok := ssm.spanSampleStores.Load(name)
	if !ok {
		value, _ = ssm.spanSampleStores.LoadOrStore(name, newSampleStore(defaultBucketCapacity, defaultBucketCapacity))
	}
	value.(*sampleStore).sampleSpan(span)
}
func (ssm *SpanProcessor) Shutdown(context.Context) error {
	return nil
}
func (ssm *SpanProcessor) ForceFlush(context.Context) error {
	return nil
}