Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinedMiddleware ¶ added in v1.0.0
func CombinedMiddleware(config *tracker.Config) gin.HandlerFunc
CombinedMiddleware combines OpenTelemetry middleware with enhanced panic recovery
func CustomRecovery ¶ added in v1.0.0
func CustomRecovery() gin.HandlerFunc
CustomRecovery returns a Gin middleware that records stack traces on panics
func EnhancedRecovery ¶ added in v1.0.0
func EnhancedRecovery() gin.HandlerFunc
EnhancedRecovery returns a Gin middleware that records detailed stack traces on panics
func Middleware ¶
func Middleware(config *tracker.Config) gin.HandlerFunc
func MiddlewareExtended ¶ added in v1.0.0
func MiddlewareExtended(config *tracker.Config) []gin.HandlerFunc
CombinedMiddlewareWithOtel creates a middleware chain with both OpenTelemetry and enhanced recovery This should be used instead of CombinedMiddleware for proper middleware chaining
Types ¶
type StackDetail ¶ added in v1.0.0
type StackDetail struct { FunctionName string `json:"exception.function_name"` File string `json:"exception.file"` Line int `json:"exception.line"` FunctionBody string `json:"exception.function_body"` IsFileExternal bool `json:"exception.is_file_external"` Language string `json:"exception.language"` StartLine int `json:"exception.start_line"` EndLine int `json:"exception.end_line"` }
StackDetail represents details of a single stack frame
Click to show internal directories.
Click to hide internal directories.