chore: Support for Elastic APM (#5004)

This PR adds support for Elastic APM for APM and Tracing in self-hosted installations.
Configuration can be done via the ELASTIC_APM_SERVER_URL and ELASTIC_APM_SECRET_TOKEN env variables.

fixes: #4999
This commit is contained in:
Kyle McLaren
2022-07-22 11:39:37 +02:00
committed by GitHub
parent 5727928600
commit bc3e7d2b5e
4 changed files with 28 additions and 7 deletions

5
config/elastic_apm.yml Normal file
View File

@@ -0,0 +1,5 @@
# Disabled by default to prevent the agent starting up when not required
# To enable, set your ELASTIC_APM_SERVER_URL and ELASTIC_APM_SECRET_TOKEN in your .env
# Additional configuration options can be set below, as per the docs: https://www.elastic.co/guide/en/apm/agent/ruby/current/configuration.html#configuration
enabled: <%= ENV.fetch('ELASTIC_APM_SECRET_TOKEN', false).present? %>