Documentation ¶
Index ¶
Constants ¶
View Source
const (
CurrentSpanContext = "current-span-context"
)
Variables ¶
This section is empty.
Functions ¶
func TracerProvider ¶
func TracerProvider(url string, withK8SSource bool) (*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.
Types ¶
type JaegerClientMiddleware ¶
type JaegerClientMiddleware struct{}
func NewJaegerClientMiddleware ¶
func NewJaegerClientMiddleware() *JaegerClientMiddleware
func (*JaegerClientMiddleware) StreamClientInterceptor ¶
func (jcm *JaegerClientMiddleware) StreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)
func (*JaegerClientMiddleware) UnaryClientInterceptor ¶
func (jcm *JaegerClientMiddleware) UnaryClientInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
type JaegerIDGenerator ¶
type JaegerMiddleOptionFunc ¶
type JaegerMiddleOptionFunc func(*Options)
type JaegerServerMiddleware ¶
type JaegerServerMiddleware struct{}
func NewJaegerServerMiddleware ¶
func NewJaegerServerMiddleware() *JaegerServerMiddleware
func (*JaegerServerMiddleware) StreamInterceptor ¶
func (jsm *JaegerServerMiddleware) StreamInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func (*JaegerServerMiddleware) UnaryInterceptor ¶
func (jsm *JaegerServerMiddleware) UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
UnaryInterceptor a service call
type MetaData ¶
type MetaData struct { ClusterName string `json:"cluster_name"` Namespace string `json:"namespace"` Deployment string `json:"deployment"` PodName string `json:"pod_name"` HostName string `json:"hostname"` ServiceName string `json:"service_name"` Environment string `json:"environment"` TraceHeader string `json:"trace_header"` InputHeader string `json:"input_header"` }
Click to show internal directories.
Click to hide internal directories.