Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentSpanID ¶
GetParentSpanID retrieves the Parent Span ID from the context.
func GetTraceID ¶
GetTraceID retrieves the Trace ID from the context.
func LoggingMiddleware ¶
func LoggingMiddleware(log logger.Logger) gin.HandlerFunc
LoggingMiddleware logs request and response details. It uses the logger from the context if available, otherwise it requires a logger to be passed.
func TraceMiddleware ¶
func TraceMiddleware(gen generator.TraceGenerator) gin.HandlerFunc
TraceMiddleware Add trace id when not found and context logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.