trace

package
v0.0.0-...-7d43bac Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package trace provides support for request tracing mechanisms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

type Span interface {
	SetTag(key string, value interface{})
	Log(event string)
	LogWithFields(event string, fields map[string]interface{})
	Finish()
}

Span represents request tracing span.

type Tracer

type Tracer interface {
	StartSpan(name string) Span
	StartSpanFromContext(ctx context.Context, name string) (Span, context.Context)
	StartSpanWithParent(name string, parent Span) Span
	SpanFromContext(ctx context.Context) Span
	ContextWithSpan(ctx context.Context, span Span) context.Context
	InjectSpan(s Span, format interface{}, carrier interface{}) error
	ExtractSpan(name string, format interface{}, carrier interface{}) (Span, error)

	system.Disposer
}

Tracer represents request tracing mechanism.

Directories

Path Synopsis
Package noop provides support for NOOP (No Operation) request tracing mechanisms.
Package noop provides support for NOOP (No Operation) request tracing mechanisms.
Package zipkin provides support for opentracing zipkin framework.
Package zipkin provides support for opentracing zipkin framework.

Jump to

Keyboard shortcuts

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