tracespec

package
v1.1.5-0...-3eb88c4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TracingKey = contextKey("X-Trace")

TracingKey is tracing key for context

Functions

This section is empty.

Types

type SpanContext

type SpanContext interface {
	TraceId() string
	SpanId() string
	Visit(fn func(key, val string) bool)
}

type Trace

type Trace interface {
	SpanContext
	Finish()
	Fork(ctx context.Context, serviceName, operationName string) (context.Context, Trace)
	Follow(ctx context.Context, serviceName, operationName string) (context.Context, Trace)
}

Jump to

Keyboard shortcuts

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