tracekratos

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 9 Imported by: 0

README

tracekratos

show trace ID in log using kratos

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceMiddleware

func NewTraceMiddleware(config *Config, logger log.Logger) middleware.Middleware

Types

type Config

type Config struct {
	TraceKeyName string
	NewTraceID   func(context.Context) string
	FormatArgs   func(req any) string
}

func NewConfig

func NewConfig(keyName string) *Config

Jump to

Keyboard shortcuts

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