Documentation ¶
Index ¶
- func HTTPProvider(serviceName string, cfg JaegerConfig) error
- func InitSpan(ctx context.Context, tracer, spanName string) (context.Context, trace.Span)
- func InitTracer(serviceName, instanceName string) (trace.Tracer, func(), error)
- func NewJaegerTracer(cfg JaegerConfig) (*tracesdk.TracerProvider, error)
- func NewOTELTracerProvider(serviceName, instanceName string) (*tracesdk.TracerProvider, error)
- func OTELGRPCProvider(serviceName string, cfg JaegerConfig) error
- func RecordError(span trace.Span, err error)
- func RegisterMetricsEndpoint(addr string)
- type JaegerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPProvider ¶
func HTTPProvider(serviceName string, cfg JaegerConfig) error
func InitTracer ¶
InitTracer creates a new tracer for a service.
func NewJaegerTracer ¶
func NewJaegerTracer(cfg JaegerConfig) (*tracesdk.TracerProvider, error)
func NewOTELTracerProvider ¶
func NewOTELTracerProvider(serviceName, instanceName string) (*tracesdk.TracerProvider, error)
tracerProvider returns an OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The returned TracerProvider will also use a Resource configured with all the information about the application.
func OTELGRPCProvider ¶
func OTELGRPCProvider(serviceName string, cfg JaegerConfig) error
func RecordError ¶
func RegisterMetricsEndpoint ¶
func RegisterMetricsEndpoint(addr string)
Types ¶
Click to show internal directories.
Click to hide internal directories.