Sample rate configmap option for zipkin in nginx-opentracing

This commit is contained in:
Andrii Kostenko 2018-06-28 17:42:32 +03:00
parent 29c5d77068
commit bc53d1eb74
No known key found for this signature in database
GPG key ID: B5BDA546B31D35E9
4 changed files with 15 additions and 1 deletions

View file

@ -433,6 +433,10 @@ type Configuration struct {
// Default: nginx
ZipkinServiceName string `json:"zipkin-service-name"`
// ZipkinSampleRate specifies sampling rate for traces
// Default: 1.0
ZipkinSampleRate float32 `json:"zipkin-sample-rate"`
// JaegerCollectorHost specifies the host to use when uploading traces
JaegerCollectorHost string `json:"jaeger-collector-host"`
@ -612,6 +616,7 @@ func NewDefault() Configuration {
BindAddressIpv6: defBindAddress,
ZipkinCollectorPort: 9411,
ZipkinServiceName: "nginx",
ZipkinSampleRate: 1.0,
JaegerCollectorPort: 6831,
JaegerServiceName: "nginx",
JaegerSamplerType: "const",