I started elastic apm agent and trying to push custom logs into elastic but those logs are not available into the elastic. Can you guys please let me know how to achieve custom logs. Below I attached my code snippet.
const apm = elasticApm.start({
"serviceName": "",
"secretToken": "xxxx",
"serverUrl": "xxxx",
"environment": "xxx"
});
apm.setCustomContext({"apm": "test"}); // This is custom context is missing in elastic side.
apm.captureError(new Error('dummy error')); // I can able to see this error in elastic.