observ

package
v0.0.0-...-e1d1ae0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

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

func RegisterStatsExporter(r gin.IRouter, 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