Elastic
To enable the Elastic tracer:
File (YAML)
tracing:
elastic: {}
File (TOML)
[tracing]
[tracing.elastic]
CLI
--tracing.elastic=true
serverURL
Optional, Default=”http://localhost:8200“
URL of the Elastic APM server.
File (YAML)
tracing:
elastic:
serverURL: "http://apm:8200"
File (TOML)
[tracing]
[tracing.elastic]
serverURL = "http://apm:8200"
CLI
--tracing.elastic.serverurl="http://apm:8200"
secretToken
Optional, Default=””
Token used to connect to Elastic APM Server.
File (YAML)
tracing:
elastic:
secretToken: "mytoken"
File (TOML)
[tracing]
[tracing.elastic]
secretToken = "mytoken"
CLI
--tracing.elastic.secrettoken="mytoken"
serviceEnvironment
Optional, Default=””
Environment’s name where Traefik is deployed in, e.g. production
or staging
.
File (YAML)
tracing:
elastic:
serviceEnvironment: "production"
File (TOML)
[tracing]
[tracing.elastic]
serviceEnvironment = "production"
CLI
--tracing.elastic.serviceenvironment="production"
Further
Additional configuration of Elastic APM Go agent can be done using environment variables. See APM Go agent reference.