telemetry

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CtxService ctxkey = "telemetry.ctx.service.name"
	CtxTracer  ctxkey = "telemetry.ctx.tracer"
	CtxSpanner ctxkey = "telemetry.ctx.spanner"
)

Functions

func Start

func Start(ctx context.Context) error

Start will help configure the telemetry in local machine On UAT/PROD we will use environment variable to configure it

func Stop

func Stop(ctx context.Context) error

func Tracer

func Tracer(name string) trace.Tracer

Types

type Spanner

type Spanner struct {
	Tracer   trace.Tracer
	Contexts map[string]context.Context
	// contains filtered or unexported fields
}

func (*Spanner) End

func (spanner *Spanner) End(name string, kv ...attribute.KeyValue)
func (spanner *Spanner) Link(dest, src string)

func (*Spanner) Start

func (spanner *Spanner) Start(name string, kv ...attribute.KeyValue)

func (*Spanner) StartWithRefId

func (spanner *Spanner) StartWithRefId(name, refId string, kv ...attribute.KeyValue)

Jump to

Keyboard shortcuts

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