1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00
Files
kubo/plugin/tracer.go
Michael Muré 72026b896f plugins: support Close() for Tracer plugins as well
Most of the tracers available need to properly close to send
the remaining traces before the process exit.
2019-09-24 17:43:07 +09:00

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)
}