Documentation
¶
Index ¶
- Variables
- func AttachTenantAttributes() app.HandlerFunc
- func CleanupTracing(ctx context.Context)
- func InitMtl(serviceName string, cfg *hdmodel.Monitor)
- func InitTracing(serviceName string, cfg *hdmodel.Monitor) route.CtxCallback
- func NewTenantIDProcessor(next trace.SpanProcessor) trace.SpanProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var Hooks []route.CtxCallback
View Source
var Reg *prometheus.Registry
View Source
var TracerProvider *tracesdk.TracerProvider
Functions ¶
func AttachTenantAttributes ¶ added in v0.0.4
func AttachTenantAttributes() app.HandlerFunc
AttachTenantAttributes 作为最后一个中间件执行,在业务与其他中间件运行后,把租户/商户/用户信息写入当前 Span
func CleanupTracing ¶
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.
Click to show internal directories.
Click to hide internal directories.