Documentation ¶
Index ¶
Constants ¶
View Source
const ( CatCtx = "cat_ctx" CatCtxRootTran = "cat_root_tran" CatCtxRedisTran = "cat_redis_tran" CatCtxMysqlTran = "cat_mysql_tran" CatCtxMongoDbTran = "cat_mongo_db_tran" CatCtxHttpRemoteTran = "cat_http_remote_tran" TypeHttpRemote = "HttpRemoteCall" TypeMongoDbPrefix = "MongoDb." TypeUrlStatus = "URL.status" RemoteCallMethod = "RemoteCall.Method" RemoteCallErr = "RemoteCall.Err" RemoteCallStatus = "RemoteCall.Status" RemoteCallScheme = "RemoteCall.Scheme" TraceIdHeaderName = "x-trace-id" ContextKeyRequestId = "requestId" ContextKeyTraceId = "traceId" ContextKeyStartTime = "startTime" )
Variables ¶
This section is empty.
Functions ¶
func GetRequestId ¶
func GetRootTran ¶
func GetRootTran(ctx context.Context) message.Transactor
func GetTraceId ¶
func SetRequestId ¶
func SetTraceId ¶
func SetTraceId(c *gin.Context, tran message.Transactor)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.