Hello, I have been having problems with RUM agent. Stack traces are not shown. In Kibana there is just "stack trace is not available".
In APM server I can see this error:
2020-08-11T09:35:34.035+0200 WARN [stacktrace] model/stacktrace.go:62 Cannot apply sourcemap without a service name or service version
but it gets accepted ...
2020-08-11T11:04:36.599+0200 INFO [request] middleware/log_middleware.go:97 request accepted {"request_id": "52d735b4-45a2-4252-b7b8-a5e3a5308184", "method": "POST", "URL": "/intake/v2/rum/events", "content_length": 19119, "remote_address": " 10.10.22.14 ", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)", "response_code": 202}
This is what apm-server.yml looks like:
rum:
enabled: true
apm-server.rum.enabled: true
apm-server.rum.source_mapping.enabled: true
apm-server.rum.allow_origins: ['*']
apm-server.rum.source_mapping.index_pattern: "apm-*"
And this is .js that we use to configure sourcemaps:
window.REACT_APP_AMP_CONFIG_ENABLED = true;
window.REACT_APP_AMP_CONFIG = {
// Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space)
serviceName: 'FrontEnd',
// Set custom APM Server URL (default: http://localhost:8200)
serverUrl: 'https://FrontEnd.pls.lab:8443/apm/',
// Set service version (required for sourcemap feature)
serviceVersion: '',
//logLevel: 'debug'
I have played with apm-config a little, I have tried to put something into serviceVersion: ... but nothing happens, chunk.js files didn't have full path in "//# sourceMappingURL=" so I added full path to the sourceMaps ... its still the same and still same error that It cant apply sourcemaps, so in Kibana its just "no stack trace available"
I am lost ... Nothing I tried helps. I would be grateful for any suggestions.
Thank you.
Whole elastic stack is on 7.8