Open yurishkuro opened 5 years ago
I used "nohup ./jaeger-collector --sampling.strategies-file=./strategies.json --es.server-urls http://127.0.0.1:9200/ --log-level=debug > collector.log 2>&1 &"
,it worked but no effective.
Then,Running the test file strategy_store_test.go,I can see it loaded the sample configuration and I changed the sample.type to remote,it didn't work.
`cfg := jaegerCfg.Configuration{`
`Sampler: &jaegerCfg.SamplerConfig{`
`Type: "remote",`
`},`
` Reporter: &jaegerCfg.ReporterConfig{`
` LogSpans: true,`
` BufferFlushInterval: 1 * time.Second,`
` LocalAgentHostPort: "127.0.0.1:6831",`
`},`
}`
I created a tracer like this,is right?It can't read the param from collector,can u tell me what should I do. There is my strategies.json file.
{
"service_strategies": [
{
"service": "ContextMakeHappyEnding",
"type": "probabilistic",
"param": 1,
"operation_strategies": [
{
"operation": "transporter",
"type": "probabilistic",
"param": 0.2
},
{
"operation": "op2",
"type": "probabilistic",
"param": 0.4
}
]
},
{
"service": "ContextUnpackKafkaItem",
"type": "probabilistic",
"param": 1
}
],
"default_strategy": [
{
"type": "probabilistic",
"param": 1
},
{
"service": "ContextUnpackKafkaItem",
"type": "probabilistic",
"param": 1
}
]
}
https://www.jaegertracing.io/docs/sampling/
(a) change "Collector Sampling Configuration" section title to "Collector Configuration", looks better in the TOC in the right sidebar
(b) explain mounting config file for Docker. From gitter