tracing

package
v0.0.0-...-1334a7b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg Config)

func Start

func Start(ctx context.Context, pkgName, methodName string) (context.Context, oteltrace.Span)

func Test

func Test()

Test input two num, return sum.

Types

type Config

type Config struct {
	ServerName    string `yaml:"-"`
	Enable        bool   `yaml:"enable"`
	OtelCollector string `yaml:"otel_collector"`
}

type Tracer

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

func NewTracer

func NewTracer(moduleName string, kind oteltrace.SpanKind) *Tracer

func (*Tracer) Start

func (t *Tracer) Start(ctx context.Context, methodName string, opts ...oteltrace.SpanStartOption) (context.Context, oteltrace.Span)

Jump to

Keyboard shortcuts

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