otel

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSpanWithCtx

func StartSpanWithCtx(ctx context.Context, db *gorm.DB, skip int) (trace.Span, *gorm.DB)

StartSpanWithCtx 生成上下文span skip The argument skip is the number of stack frames to ascend, with 0 identifying the caller of Caller

Types

type OpentelemetryPlugin

type OpentelemetryPlugin struct{}

func (*OpentelemetryPlugin) Initialize

func (op *OpentelemetryPlugin) Initialize(db *gorm.DB) (err error)

func (*OpentelemetryPlugin) Name

func (op *OpentelemetryPlugin) Name() string

Jump to

Keyboard shortcuts

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