Elastic APM tracer implementation

This commit is contained in:
Amine Benseddik 2019-11-27 16:00:07 +01:00 committed by Traefiker Bot
parent c4a38de007
commit fe8b090911
11 changed files with 223 additions and 0 deletions

View file

@ -108,6 +108,14 @@ func setupTracing(conf *static.Tracing) *tracing.Tracing {
}
}
if conf.Elastic != nil {
if backend != nil {
log.WithoutContext().Error("Multiple tracing backend are not supported: cannot create Elastic backend.")
} else {
backend = conf.Elastic
}
}
if backend == nil {
log.WithoutContext().Debug("Could not initialize tracing, using Jaeger by default")
defaultBackend := &jaeger.Config{}