tracespec

package
v1.1.2-0...-f7e2eea Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 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