package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Nov 20, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package middlewares
built-in iris web application middlewares.
View Source
const (
TracingSpan = "__OpenTelemetrySpan__"
TracingTraceId = "X-Request-Id"
)
func Catch(i iris.Context)
Catch
Catches a runtime panic on each http request.
func Error(i iris.Context)
Error
render any error result.
func Tracing(i iris.Context)
Tracing
build OpenTelemetry around each http request that compatible
with OpenTracing. It's a top level middleware of all middleware.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.