Documentation ¶
Index ¶
- func ContextForTrace(ctx context.Context) context.Context
- func Enabled() bool
- func ExtractTextMapCarrier(ctx context.Context) propagation.TextMapCarrier
- func Init(ctx context.Context, serviceName, serviceVersion string) (shutdown func(context.Context) error, err error)
- func InitWithOptions(ctx context.Context, opts Options) (shutdown func(context.Context) error, err error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextForTrace ¶ added in v0.0.4
ContextForTrace 環境変数からトレースコンテキストを読み取り、propagator経由で値を反映させたコンテキストを返す
func ExtractTextMapCarrier ¶ added in v0.0.4
func ExtractTextMapCarrier(ctx context.Context) propagation.TextMapCarrier
ExtractTextMapCarrier 現在のコンテキストからTextMapCarrierを抽出する
Types ¶
Click to show internal directories.
Click to hide internal directories.