Make Zipkin trace rate configurable
This commit is contained in:
parent
51650c1412
commit
32f7fb8bff
6 changed files with 24 additions and 10 deletions
|
@ -206,6 +206,7 @@ func (gc *GlobalConfiguration) initTracing() {
|
|||
SameSpan: false,
|
||||
ID128Bit: true,
|
||||
Debug: false,
|
||||
SampleRate: 1.0,
|
||||
}
|
||||
}
|
||||
if gc.Tracing.Jaeger != nil {
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue