Given this docker file to setup the backend services that includes: elasticsearch, apm-server, kibana, jaeger-collector, jaeger-agent, jaeger-query, grafana.
apm-server:
image: docker.elastic.co/apm/apm-server:6.8.1
ports:
- 8200:8200
environment:
- output.elasticsearch.hosts=['http://elasticsearch:9200']
- apm-server.host="0.0.0.0:8200"
- apm-server.rum.enabled=true
- setup.kibana.host="kibana:5601"
- setup.template.enabled=true
- logging.to_files=false
networks:
- elastic-jaeger
I am running Elastic APM with Opentracing from my Angular client:
const elasticApm = initApm({
serviceName: `Test`,
serviceUrl: `127.0.0.1:8200`,
// serviceVersion: ``,
active: true,
environment: ``, // production, development, test, etc
logLevel: `warn`, // Possible levels are: trace, debug, info, warn, error
flushInterval: 500, // ms
errorThrottleLimit: 20, // errors
errorThrottleInterval: 30000, // ms
transactionSampleRate: 1.0,
distributedTracing: true,
distributedTracingOrigins: ['http://foo.com']
});
const elasticTracer = createTracer(elasticApm);
this.opentracing.initGlobalTracer(elasticTracer);
I am encountering CORS issue:
My goal is to hook up Angular the elastic APM's opentracing client to the services inside docker.
There are some additional issues and documents that covers CORS for apm-server:
It looks like the config should work, since Default value is set to ['*'], which allows everything.