tracing

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointType_GRPC _EndpointType = "grpc"
	EndpointType_HTTP _EndpointType = "http"
)

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context, opts ...Option) (trace.TracerProvider, error)

func InitializeWithCustomTracer

func InitializeWithCustomTracer(tp trace.TracerProvider, propagator propagation.TextMapPropagator)

func ParseEndpointType added in v0.3.13

func ParseEndpointType(endpointType string) _EndpointType

func StreamClientInterceptor

func StreamClientInterceptor() grpc.StreamClientInterceptor

func StreamServerInterceptor

func StreamServerInterceptor() grpc.StreamServerInterceptor

func TracingMiddleware added in v0.3.2

func TracingMiddleware() gin.HandlerFunc

gin middleware for tracing

func UnaryClientInterceptor

func UnaryClientInterceptor() grpc.UnaryClientInterceptor

func UnaryServerInterceptor

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

Types

type Option

type Option func(*config)

func Endpoint

func Endpoint(endpoint string) Option

func EndpointType

func EndpointType(endpointType _EndpointType) Option

func Insecure

func Insecure(insecure bool) Option

func Metadata

func Metadata(metadata map[string]string) Option

func ServiceName

func ServiceName(serviceName string) Option

func ServiceVersion

func ServiceVersion(serviceVersion string) Option

Jump to

Keyboard shortcuts

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