mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-15 11:56:15 +08:00

define interface for creating tracers for use with opentracing-api License: MIT Signed-off-by: ForrestWeston <forrest@protocol.ai>
12 lines
255 B
Go
12 lines
255 B
Go
package plugin
|
|
|
|
import (
|
|
"gx/ipfs/QmWLWmRVSiagqP15jczsGME1qpob6HDbtbHAY2he9W5iUo/opentracing-go"
|
|
)
|
|
|
|
// PluginTracer is an interface that can be implemented to add a tracer
|
|
type PluginTracer interface {
|
|
Plugin
|
|
InitTracer() (opentracing.Tracer, error)
|
|
}
|