observ

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExporter

func RegisterExporter(traceExporter, URL, service, ENV string) (func(), error)

RegisterExporter determines the type of TraceExporter service for exporting traces from opencensus User can choose from multiple tracing services (datadog, jaegar) RegisterExporter returns the 'Flush' function for that particular tracing service

func StartSpan

func StartSpan(ctx context.Context, op string) (context.Context, *trace.Span)

StartSpan takes in a Context Interface and opName and starts a span. It returns the new attached ObserverContext and span

func Tracer

func Tracer(service string) buffalo.MiddlewareFunc

Tracer is a middleware that starts a span from the top of a buffalo context and propates it to the bottom of the stack

Types

This section is empty.

Jump to

Keyboard shortcuts

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