Documentation ¶
Index ¶
- Constants
- Variables
- func CustomTag(key string, val interface{}) opentracing.Tag
- func ESTraceServerInterceptor() *http.Client
- func FromIncomingContext(ctx context.Context) opentracing.StartSpanOption
- func GRPCStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func GRPCUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func HBaseTrace(component, instance string) hbase.HookFunc
- func HTTPMetricServerInterceptor() gin.HandlerFunc
- func HTTPTraceServerInterceptor() gin.HandlerFunc
- func HeaderExtractor(hdr map[string][]string) opentracing.StartSpanOption
- func HeaderInjector(ctx context.Context, hdr map[string][]string) context.Context
- func MetadataExtractor(md map[string][]string) opentracing.StartSpanOption
- func MetadataInjector(ctx context.Context, md metadata.MD) context.Context
- func RPCTraceStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func RPCTraceUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func SpanFromContext(ctx context.Context) opentracing.Span
- func StartSpanFromContext(ctx context.Context, op string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
- func TagComponent(component string) opentracing.Tag
- func TagSpanKind(kind string) opentracing.Tag
- func TagSpanURL(url string) opentracing.Tag
- type ESTracedTransport
- type MetadataReaderWriter
- type NullStartSpanOption
- type TraceConfig
- type Tracing
Constants ¶
View Source
const MaxContentLength = 1 << 16
Variables ¶
View Source
var ( // String ... String = log.String )
Functions ¶
func FromIncomingContext ¶
FromIncomingContext ...
func GRPCStreamServerInterceptor ¶
func GRPCStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
GRPCStreamServerInterceptor 监控程序跟踪
func GRPCUnaryServerInterceptor ¶
func GRPCUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
GRPCUnaryServerInterceptor 监控程序跟踪
func HTTPMetricServerInterceptor ¶
func HTTPMetricServerInterceptor() gin.HandlerFunc
HTTPMetricServerInterceptor 监控程序跟踪
func HTTPTraceServerInterceptor ¶
func HTTPTraceServerInterceptor() gin.HandlerFunc
HTTPTraceServerInterceptor 链路跟踪
func HeaderExtractor ¶
HeaderExtractor ...
func HeaderInjector ¶
HeaderInjector ...
func MetadataExtractor ¶
MetadataExtractor ...
func MetadataInjector ¶
MetadataInjector ...
func RPCTraceStreamServerInterceptor ¶
func RPCTraceStreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
RPCTraceStreamServerInterceptor ...
func RPCTraceUnaryServerInterceptor ¶
func RPCTraceUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
RPCTraceUnaryServerInterceptor ...
func SpanFromContext ¶
SpanFromContext ...
Types ¶
type ESTracedTransport ¶
type MetadataReaderWriter ¶
MetadataReaderWriter ...
func (MetadataReaderWriter) ForeachKey ¶
func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey ...
type NullStartSpanOption ¶
type NullStartSpanOption struct{}
NullStartSpanOption ...
func (NullStartSpanOption) Apply ¶
func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)
Apply ...
type TraceConfig ¶
type TraceConfig struct { ServiceName string SamplingServerURL string SamplingParam float64 SamplingType string BufferFlushInterval time.Duration LogSpans bool QueueSize int PropagationFormat string }
TraceConfig 实列
Click to show internal directories.
Click to hide internal directories.