tracing

package
v0.0.0-...-b4ec2be Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceNameCA    = "certificate_authority"
	ServiceNameAuthz = "authz"
)

Variables

This section is empty.

Functions

func GRPCExporter

func GRPCExporter(
	ctx context.Context, url string, opts ...cfg.Option[Config],
) (sdktrace.SpanExporter, error)

GRPCExporter creates a trace.SpanExporter using a gRPC connection to a tracing backend.

func NoopExporter

func NoopExporter() noopExporter

func Tracer

func Tracer(name string) trace.Tracer

Tracer returns the registered tracer for this service. It defaults to a no-op trace.Tracer if not yet initialized.

func WithCredentials

func WithCredentials(username, password string) cfg.Option[Config]

func WithTimeout

func WithTimeout(dur time.Duration) cfg.Option[Config]

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type ShutdownFunc

type ShutdownFunc func(ctx context.Context) error

func Init

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

Jump to

Keyboard shortcuts

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