Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
Hook is a types.Hook implementation which samples the spans. This is supposed to be used for performance reasons in high performance applications.
Setup example:
import ( "github.com/facebookincubator/go-belt/pkg/sampler" samplerhook "github.com/facebookincubator/go-belt/tool/experimental/tracer/hooks/sampler" "github.com/facebookincubator/go-belt/tool/experimental/tracer/implementation/zipkin" ) func main() { ... ctx = tracer.CtxWithTracer(ctx, zipkin.New(zipkinClient).WithPreHooks( samplerhook.NewSamplerPreHook(sampler.RandomSampler(0.1)), )) ... }
Click to show internal directories.
Click to hide internal directories.