tracing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "full-text-search"

Variables

This section is empty.

Functions

func GRPCExporter

func GRPCExporter(ctx context.Context, uri string) (sdktrace.SpanExporter, error)

GRPCExporter creates a trace.SpanExporter that pushes spans to a tracing backend via gRPC.

This call takes in a URI string to the tracing backend, and returns the trace.SpanExporter and an error if raised.

func Tracer

func Tracer() trace.Tracer

Tracer returns a trace.Tracer for this (full-text search) service.

Types

type ShutdownFunc

type ShutdownFunc func(err context.Context) error

func Init

func Init(ctx context.Context, traceExporter sdktrace.SpanExporter) (ShutdownFunc, error)

Init registers a new tracer for this service, that exports its spans to the input trace.SpanExporter.

This call returns the TracerProvider's shutdown function, and an error if raised.

Jump to

Keyboard shortcuts

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