monitor

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TracerProvider *tracesdk.TracerProvider

Functions

func AttachTenantAttributes added in v0.0.4

func AttachTenantAttributes() app.HandlerFunc

AttachTenantAttributes 作为最后一个中间件执行,在业务与其他中间件运行后,把租户/商户/用户信息写入当前 Span

func CleanupTracing

func CleanupTracing(ctx context.Context)

func InitMtl

func InitMtl(serviceName string, cfg *hdmodel.Monitor)

func InitTracing

func InitTracing(serviceName string, cfg *hdmodel.Monitor) route.CtxCallback

func NewTenantIDProcessor added in v0.0.3

func NewTenantIDProcessor(next trace.SpanProcessor) trace.SpanProcessor

Types

This section is empty.

Jump to

Keyboard shortcuts

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