MCPcopy
hub / github.com/containerd/containerd / newInMemoryExporterTracer

Function newInMemoryExporterTracer

integration/client/tracing.go:35–45  ·  view source on GitHub ↗

newInMemoryExporterTracer creates in memory exporter and tracer provider to be used as tracing test

()

Source from the content-addressed store, hash-verified

33// newInMemoryExporterTracer creates in memory exporter and tracer provider to be
34// used as tracing test
35func newInMemoryExporterTracer() (*tracetest.InMemoryExporter, *sdktrace.TracerProvider) {
36 //create in memory exporter
37 exp := tracetest.NewInMemoryExporter()
38
39 //create tracer provider
40 tp := sdktrace.NewTracerProvider(
41 sdktrace.WithBatcher(exp),
42 )
43
44 return exp, tp
45}
46
47// validateRootSpan takes span slice as input, check if there are rootspans match the expected
48// name and the status code is not error

Callers 1

TestImagePullWithTracingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestImagePullWithTracingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…