Make Zipkin trace rate configurable

This commit is contained in:
Nic Cope 2018-10-09 01:18:02 -07:00 committed by Traefiker Bot
parent 51650c1412
commit 32f7fb8bff
6 changed files with 24 additions and 10 deletions

View file

@ -206,6 +206,7 @@ func (gc *GlobalConfiguration) initTracing() {
SameSpan: false,
ID128Bit: true,
Debug: false,
SampleRate: 1.0,
}
}
if gc.Tracing.Jaeger != nil {

View file

@ -120,6 +120,7 @@ func TestSetEffectiveConfigurationTracing(t *testing.T) {
SameSpan: false,
ID128Bit: true,
Debug: false,
SampleRate: 1.0,
},
},
},
@ -138,6 +139,7 @@ func TestSetEffectiveConfigurationTracing(t *testing.T) {
SameSpan: true,
ID128Bit: true,
Debug: true,
SampleRate: 0.02,
},
},
expected: &tracing.Tracing{
@ -148,6 +150,7 @@ func TestSetEffectiveConfigurationTracing(t *testing.T) {
SameSpan: true,
ID128Bit: true,
Debug: true,
SampleRate: 0.02,
},
},
},