tracing

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tracing provides distributed tracing services to Trickster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPToCode

func HTTPToCode(status int) codes.Code

HTTPToCode translates an HTTP status code into a GRPC code

Types

type FlusherFunc

type FlusherFunc func()

FlusherFunc defines a function used to Flush a Tracer

type Tags

type Tags map[string]string

Tags represents a collection of Tags

func (Tags) Merge

func (t Tags) Merge(t2 Tags)

Merge merges t2, when not nil, into t

func (Tags) MergeAttr

func (t Tags) MergeAttr(attr []label.KeyValue)

MergeAttr merges the provided attributes into the Tags map

func (Tags) ToAttr

func (t Tags) ToAttr() []label.KeyValue

ToAttr returns the Tags map as an Attributes List

type Tracer

type Tracer struct {
	trace.Tracer
	Name    string
	Flusher FlusherFunc
	Options *options.Options
}

Tracer is a Tracer object used by Trickster

type Tracers

type Tracers map[string]*Tracer

Tracers is a map of *Tracer objects

Directories

Path Synopsis
Package errors provides tracing errors
Package errors provides tracing errors
exporters
jaeger
Package jaeger provides a Jager Tracer
Package jaeger provides a Jager Tracer
noop
Package noop provides a Noop Tracer
Package noop provides a Noop Tracer
stdout
Package stdout provides a Stdout Tracer
Package stdout provides a Stdout Tracer
zipkin
Package zipkin provides a Zipkin Tracer
Package zipkin provides a Zipkin Tracer
Package registration registers configured tracers for use with handlers
Package registration registers configured tracers for use with handlers

Jump to

Keyboard shortcuts

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