diagnostics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 15 Imported by: 3

Documentation

Index

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

type TracerSpan struct {
	Context     context.Context
	Span        *trace.Span
	SpanContext *trace.SpanContext
}

TracerSpan defines a tracing span that a tracer users to keep track of call scopes

Jump to

Keyboard shortcuts

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