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: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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