Documentation ¶
Overview ¶
Package opencensus implements a github.com/virtual-kubelet/virtual-kubelet/trace.Tracer using opencensus as a backend.
Use this by setting `trace.T = Adapter{}`
Index ¶
- func AvailableTraceExporters() []string
- func GetTracingExporter(name string, opts TracingExporterOptions) (trace.Exporter, error)
- func NewJaegerExporter(opts TracingExporterOptions) (trace.Exporter, error)
- func NewOCAgentExporter(opts TracingExporterOptions) (trace.Exporter, error)
- func RegisterTracingExporter(name string, f TracingExporterInitFunc)
- type Adapter
- type TracingExporterInitFunc
- type TracingExporterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableTraceExporters ¶
func AvailableTraceExporters() []string
AvailableTraceExporters gets the list of registered exporters
func GetTracingExporter ¶
func GetTracingExporter(name string, opts TracingExporterOptions) (trace.Exporter, error)
GetTracingExporter gets the specified tracing exporter passing in the options to the exporter init function. For an exporter to be availbale here it must be registered with `RegisterTracingExporter`.
func NewJaegerExporter ¶
func NewJaegerExporter(opts TracingExporterOptions) (trace.Exporter, error)
NewJaegerExporter creates a new opencensus tracing exporter.
func NewOCAgentExporter ¶
func NewOCAgentExporter(opts TracingExporterOptions) (trace.Exporter, error)
NewOCAgentExporter creates a new opencensus tracing exporter using the opencensus agent forwarder.
func RegisterTracingExporter ¶
func RegisterTracingExporter(name string, f TracingExporterInitFunc)
RegisterTracingExporter registers a tracing exporter. For a user to select an exporter, it must be registered here.
Types ¶
type TracingExporterInitFunc ¶
type TracingExporterInitFunc func(TracingExporterOptions) (trace.Exporter, error)
TracingExporterInitFunc is the function that is called to initialize an exporter. This is used when registering an exporter and called when a user specifed they want to use the exporter.