tracing

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer(
	serviceName string,
	endpoint string,
	endpointType EndpointType,
	samplingFraction float64,
) (tp trace.TracerProvider, closer func(), err error)

InitTracer creates an OTel TracerProvider that exports the traces to a Jaeger agent/collector.

Types

type EndpointType

type EndpointType string

EndpointType represents the type of the tracing endpoint.

const (
	EndpointTypeCollector EndpointType = "collector"
	EndpointTypeAgent     EndpointType = "agent"
)

Jump to

Keyboard shortcuts

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