Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.10.0
type Client interface {
Shutdown()
}
Client is the interface for our tracer. It contains the underlying tracer provider and a Shutdown method to perform a clean shutdown.
func Setup ¶
Setup is used to setup tracing for kobs. For that we are creating a new TracerProvider and register it as the global so any imported instrumentation will default to using it. If tracing is disabled the setup function returns nil.
During the shutdown process of kobs the "Shutdown" method of the returned client must be called.
Click to show internal directories.
Click to hide internal directories.