Documentation ¶
Index ¶
- func DeserializeSpanContext(ctx string) trace.SpanContext
- func DeserializeSpanContextPointer(ctx string) *trace.SpanContext
- func SerializeSpanContext(ctx trace.SpanContext) string
- func TraceSpanFromFastHTTPContext(c *fasthttp.RequestCtx, spec config.TracingSpec) (TracerSpan, TracerSpan)
- func TracingGRPCMiddleware(spec config.TracingSpec) grpc_go.StreamServerInterceptor
- func TracingGRPCMiddlewareUnary(spec config.TracingSpec) grpc_go.UnaryServerInterceptor
- func TracingHTTPMiddleware(spec config.TracingSpec, next fasthttp.RequestHandler) fasthttp.RequestHandler
- func TracingSpanFromGRPCContext(c context.Context, req interface{}, method string, spec config.TracingSpec) (TracerSpan, TracerSpan)
- type TracerSpan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeSpanContext ¶
func DeserializeSpanContext(ctx string) trace.SpanContext
DeserializeSpanContext deserializes a span context from a string
func DeserializeSpanContextPointer ¶
func DeserializeSpanContextPointer(ctx string) *trace.SpanContext
DeserializeSpanContextPointer deserializes a span context from a trace pointer
func SerializeSpanContext ¶
func SerializeSpanContext(ctx trace.SpanContext) string
SerializeSpanContext serializes a span context into a simple string
func TraceSpanFromFastHTTPContext ¶
func TraceSpanFromFastHTTPContext(c *fasthttp.RequestCtx, spec config.TracingSpec) (TracerSpan, TracerSpan)
TraceSpanFromFastHTTPContext creates a tracing span form a fasthttp request context
func TracingGRPCMiddleware ¶
func TracingGRPCMiddleware(spec config.TracingSpec) grpc_go.StreamServerInterceptor
TracingGRPCMiddleware plugs tracer into gRPC stream
func TracingGRPCMiddlewareUnary ¶
func TracingGRPCMiddlewareUnary(spec config.TracingSpec) grpc_go.UnaryServerInterceptor
TracingGRPCMiddlewareUnary plugs tracer into gRPC unary calls
func TracingHTTPMiddleware ¶
func TracingHTTPMiddleware(spec config.TracingSpec, next fasthttp.RequestHandler) fasthttp.RequestHandler
TracingHTTPMiddleware plugs tracer into fasthttp pipeline
func TracingSpanFromGRPCContext ¶
func TracingSpanFromGRPCContext(c context.Context, req interface{}, method string, spec config.TracingSpec) (TracerSpan, TracerSpan)
TracingSpanFromGRPCContext creates a span from an incoming gRPC method call
Types ¶
type TracerSpan ¶
TracerSpan defines a tracing span that a tracer users to keep track of call scopes
Click to show internal directories.
Click to hide internal directories.