mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
katautils: fix panic on tracing.
This fixes a panic on tracing on container exit. The root cause is that global var needs to be set by "=" instead of ":=". Fixes: #9102 Signed-off-by: Liu Bo <liub.liubo@gmail.com>
This commit is contained in:
parent
11b603e5f1
commit
b6f8355ea3
@ -90,7 +90,7 @@ func CreateTracer(name string, config *JaegerConfig) (*sdktrace.TracerProvider,
|
||||
}
|
||||
|
||||
// build tracer provider, that combining both jaeger exporter and kata exporter.
|
||||
tp := sdktrace.NewTracerProvider(
|
||||
tp = sdktrace.NewTracerProvider(
|
||||
sdktrace.WithSampler(sdktrace.AlwaysSample()),
|
||||
sdktrace.WithSyncer(kataExporter),
|
||||
sdktrace.WithSyncer(jaegerExporter),
|
||||
|
Loading…
Reference in New Issue
Block a user