// WithSample receive a function with gin.Context to decide sample with each request
WithSample receive a function with gin.Context to decide sample with each request
// WithSample receive a function with gin . Context to decide sample with each request
func WithSample(f func(c *gin.Context) trace.Sampler) TraceOption {
	return func(o *TraceOptions) {
		o.sample = f
	}
}
func WithSample ( f func ( c * gin . Context ) trace . Sampler ) TraceOption { return func ( o * TraceOptions ) { o . sample = f } }
WithSample receive a function with gin.Context to decide sample with each request
WithSample receive a function with gin . Context to decide sample with each request