tracer

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 14 Imported by: 0

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

func Setup(enabled bool, service string, providerType string, url string) (Client, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL