mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
make lint: include pkg/tracing
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -12,6 +12,7 @@ import (
|
||||
// Init returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.
|
||||
func Init(service string) (opentracing.Tracer, io.Closer) {
|
||||
cfg := &config.Configuration{
|
||||
ServiceName: service,
|
||||
Sampler: &config.SamplerConfig{
|
||||
Type: "const",
|
||||
Param: 1,
|
||||
@ -20,7 +21,7 @@ func Init(service string) (opentracing.Tracer, io.Closer) {
|
||||
LogSpans: true,
|
||||
},
|
||||
}
|
||||
tracer, closer, err := cfg.New(service, config.Logger(jaeger.StdLogger))
|
||||
tracer, closer, err := cfg.NewTracer(config.Logger(jaeger.StdLogger))
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("ERROR: cannot init Jaeger: %v\n", err))
|
||||
}
|
||||
|
Reference in New Issue
Block a user