func TestAPIServerTracingWithKMSv2(t *testing.T) { … }
func TestAPIServerTracingWithEgressSelector(t *testing.T) { … }
func TestAPIServerTracing(t *testing.T) { … }
type traceServer …
func (t *traceServer) Export(ctx context.Context, req *traceservice.ExportTraceServiceRequest) (*traceservice.ExportTraceServiceResponse, error) { … }
func (t *traceServer) resetExpectations(newExpectations traceExpectation) { … }
type traceExpectation …
func (t traceExpectation) met() bool { … }
func (t traceExpectation) contains(checkTID string) bool { … }
func (t traceExpectation) update(req *traceservice.ExportTraceServiceRequest) { … }
func (t traceExpectation) updateForSpan(span *tracev1.Span) { … }
type spanExpectation …
func (s *spanExpectation) contains(tid string) bool { … }
type eventExpectation …
func (e eventExpectation) matches(events []*tracev1.Span_Event) bool { … }
type attributeExpectation …
func (a attributeExpectation) matches(attrs []*commonv1.KeyValue) bool { … }