tracespec

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 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)
}

SpanContext interface that represents a span context.

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)
}

Trace interface represents a tracing.

Jump to

Keyboard shortcuts

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