tracing

package
v0.0.0-...-3361740 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package tracing provides support for request tracing mechanisms.

Index

Constants

View Source
const (
	// ServiceName used to setup the tracer
	ServiceName string = "abraracourcix"
)

Variables

This section is empty.

Functions

func Errorf

func Errorf(span opentracing.Span, err error) error

func GetChildSpan

func GetChildSpan(span opentracing.Span, operationName string) opentracing.Span

func GetParentSpan

func GetParentSpan(ctx context.Context, operationName string) opentracing.Span

func GrpcError

func GrpcError(span opentracing.Span, err error) error

func New

func New(conf *config.Configuration) (opentracing.Tracer, error)

func NewTestTracer

func NewTestTracer(name string)

func RegisterTracer

func RegisterTracer(name string, f TracerFunc)

func SetResponse

func SetResponse(span opentracing.Span, response string)

func SetSpanTags

func SetSpanTags(span opentracing.Span, provider string, url string, method string)

Types

type TracerFunc

type TracerFunc func(conf *config.Configuration) (opentracing.Tracer, error)

Directories

Path Synopsis
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