observ

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: MIT Imports: 12 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 RegisterStatsExporter added in v0.3.0

func RegisterStatsExporter(r *mux.Router, statsExporter, service string) (func(), error)

RegisterStatsExporter determines the type of StatsExporter service for exporting stats from Opencensus Currently it supports: prometheus

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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