mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00

Most of the tracers available need to properly close to send the remaining traces before the process exit.
13 lines
224 B
Go
13 lines
224 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/opentracing/opentracing-go"
|
|
)
|
|
|
|
// PluginTracer is an interface that can be implemented to add a tracer
|
|
type PluginTracer interface {
|
|
Plugin
|
|
|
|
InitTracer() (opentracing.Tracer, error)
|
|
}
|