trace

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const TokenHeaderName = "token"
View Source
const UberTraceId = "Uber-Trace-Id"

Variables

This section is empty.

Functions

func GetJourneyTokenFromRequestToken added in v0.57.0

func GetJourneyTokenFromRequestToken(c *gin.Context, jwToken tokenauth.TokenBase) (bool, string, error)

func GetUberTraceId

func GetUberTraceId(c context.Context) string

func HttpTracingUnaryServerInterceptor

func HttpTracingUnaryServerInterceptor(deps tracingDeps) gin.HandlerFunc

func JwtToken

func JwtToken() gin.HandlerFunc

func RequestId

func RequestId() gin.HandlerFunc

func TracerRESTClientInterceptor

func TracerRESTClientInterceptor(deps tracingDeps) client.HTTPClientInterceptor

TracerRESTClientInterceptor is a REST tracing client interceptor, it can log req/resp if needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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