in main.go [212:221]
func handleRUMConfig(c *gin.Context) {
apmServerURL := os.Getenv("ELASTIC_APM_JS_SERVER_URL")
if apmServerURL == "" {
apmServerURL = "http://localhost:8200"
} else {
apmServerURL = template.JSEscapeString(apmServerURL)
}
content := fmt.Sprintf("window.elasticApmJsBaseServerUrl = '%s';\n", apmServerURL)
c.Data(200, "application/javascript", []byte(content))
}