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" )
Click to show internal directories.
Click to hide internal directories.