package
0.0.0-20230316081402-47b6ad521118
Repository: https://github.com/asppj/lolita.git
Documentation: pkg.go.dev
# Functions
GetCtxFromGinContext extract span from ctx http 请求中调用grpc服务时使用.
Middleware is a gin native version of the equivalent middleware in: https://github.com/opentracing-contrib/go-stdlib/.
MWComponentName returns a MWOption that sets the component name for the app-side span.
MWSpanObserver returns a MWOption that observe the span for the app-side span.
MWURLTagFunc returns a MWOption that uses given function f to set the span's http.url tag.
NewOpenTraceClient 连接.
OperationNameFunc returns a MWOption that uses given function f to generate operation name for each app-side span.
SetSamplingFrequency 设置采样频率 0 <= n <= 100.
SpanTransferFromContextToHeader extract span from ctx.
TracerWrapper tracer 中间件.
# Type aliases
MWOption controls the behavior of the Middleware.