package
0.0.0-20241122052957-9e55e10e432b
Repository: https://github.com/andrew-m-c/trpc-go-utils.git
Documentation: pkg.go.dev
# Packages
Package tracing 将在 context 中关联 trace ID 的功能独立出来.
# Functions
EnsureTraceID 确保 context 中有一个 trace ID, 协程不安全
Deprecated: 请改使用 tracing 包.
Fatal 打 fatal 级别日志并退出应用程序.
FatalContext 打 fatal 级别日志并退出应用程序.
FatalContextf 打 fatal 级别日志并退出应用程序.
Fatalf 打 fatal 级别日志并退出应用程序.
RegisterTraceLogFilter 注册 tracelog filter。请在 trpc.NewServer 之前调用。.
No description provided by the author
ToJSON 在打日志的时候转为 JSON string.
No description provided by the author
TraceID 从 context 中读取 trace ID
Deprecated: 请改使用 tracing 包.
TraceIDStack 从 context 中读取历史 trace ID 栈
Deprecated: 请改使用 tracing 包.
WithTraceID 更新 trace ID
Deprecated: 请改使用 tracing 包.
WithTraceIDStack 完全替换整个 trace ID 栈
Deprecated: 请改使用 tracing 包.
# Constants
tracelog 的 filter 名称.
TraceIDMetadataKey 定义用于传递 trace ID 的 trpc metadata 字段.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author