tracer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer(serviceName string, collectorURL string, isSecured bool) (*otlptrace.Exporter, error)

Types

type Span

type Span struct {
	// contains filtered or unexported fields
}

Span is a struct to handle span

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, operation string) (Span, context.Context)

StartSpanFromContext create and start an opentracing and newrelic span from context

func (*Span) Finish

func (s *Span) Finish(errors error)

Finish finish the span

Jump to

Keyboard shortcuts

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