Hello, I've setup RUM agent in Rails application and data is correctly getting to Kibana. I can see updates on the User Experience dashboard as activities happen in the application. I'm using the same APM server for multiple Rails environments. My problem is, switching environments in Environment Selector has no effect on the data shown, i.e. all "All", "development", "staging" environments show the exact same data. APM on the other hand is working well with different environments.
Here is how the RUM agent is configured on every page of the application:
<script type="text/javascript">
(function(d, s, c) {
var j = d.createElement(s), t = d.getElementsByTagName(s)[0];
j.src = '/assets/elastic-apm-rum.umd.min-8db580e997677d28a44c6d11c14ccc1363d953ad5ee86ca94861b7a07ec3ab7b.js';
j.onload = function(){elasticApm.init(c);};
t.parentNode.insertBefore(j, t);
})(document, 'script', {
serviceName: 'test-app', serverUrl: 'http://localhost:8200', environment: 'development'
});
</script>
Is there something else I need to do to correctly pass the environment in RUM?