telemetry

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tracer opentracing.Tracer
	Closer io.Closer
)

Functions

func DeleteSpanTraceId

func DeleteSpanTraceId()

func FinishSpan

func FinishSpan(span opentracing.Span)

func GetSpanTraceId

func GetSpanTraceId() interface{}

func InitTracer

func InitTracer(serviceName, agentHostPort string) error

func SetSpanTraceId

func SetSpanTraceId(ID interface{})

func SpanSetTag

func SpanSetTag(span opentracing.Span, tagname string, tagvalue interface{})

func StartSpan

func StartSpan(operationName, parentSpanTraceId string, startIfNoParent bool, startTime opentracing.StartSpanOption) (span opentracing.Span, spanTraceId string, err error)

Types

type Config

type Config struct {
	Url        string
	ServerName string
	Env        string
}

Jump to

Keyboard shortcuts

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