tracing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package tracing is a utility package for tracing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonEventOption

func CommonEventOption(_ context.Context, namespace string) trace.SpanStartEventOption

CommonEventOption .

func InitJaeger

func InitJaeger(serviceName, endpoint, version, environment, hostIP string) (*trace.TracerProvider, error)

InitJaeger initializes and registers jaeger to global TracerProvider.

The output parameter `flush` is used for waiting exported trace spans to be uploaded, which is useful if your program is ending, and you do not want to lose recent spans.

func InitTracer

func InitTracer(ctx context.Context, serviceName string)

InitTracer initializes and registers jaeger to global TracerProvider.

func SetAttributes

func SetAttributes(r *ghttp.Request, span *gtrace.Span)

SetAttributes .set tracing attributes

Types

This section is empty.

Jump to

Keyboard shortcuts

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