{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/apm-agent-nodejs/issues/235","repository_url":"https://api.github.com/repos/elastic/apm-agent-nodejs","labels_url":"https://api.github.com/repos/elastic/apm-agent-nodejs/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/elastic/apm-agent-nodejs/issues/235/comments","events_url":"https://api.github.com/repos/elastic/apm-agent-nodejs/issues/235/events","html_url":"https://github.com/elastic/apm-agent-nodejs/issues/235","id":295471265,"number":235,"title":"TypeError: Cannot set property 'request' of null","user":{"login":"consense","id":2467245,"avatar_url":"https://avatars0.githubusercontent.com/u/2467245?v=4","gravatar_id":"","url":"https://api.github.com/users/consense","html_url":"https://github.com/consense","followers_url":"https://api.github.com/users/consense/followers","following_url":"https://api.github.com/users/consense/following{/other_user}","gists_url":"https://api.github.com/users/consense/gists{/gist_id}","starred_url":"https://api.github.com/users/consense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consense/subscriptions","organizations_url":"https://api.github.com/users/consense/orgs","repos_url":"https://api.github.com/users/consense/repos","events_url":"https://api.github.com/users/consense/events{/privacy}","received_events_url":"https://api.github.com/users/consense/received_events","type":"User","site_admin":false},"labels":[{"id":664230007,"url":"https://api.github.com/repos/elastic/apm-agent-nodejs/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"watson","id":10602,"avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","gravatar_id":"","url":"https://api.github.com/users/watson","html_url":"https://github.com/watson","followers_url":"https://api.github.com/users/watson/followers","following_url":"https://api.github.com/users/watson/following{/other_user}","gists_url":"https://api.github.com/users/watson/gists{/gist_id}","starred_url":"https://api.github.com/users/watson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson/subscriptions","organizations_url":"https://api.github.com/users/watson/orgs","repos_url":"https://api.github.com/users/watson/repos","events_url":"https://api.github.com/users/watson/events{/privacy}","received_events_url":"https://api.github.com/users/watson/received_events","type":"User","site_admin":false},"assignees":[{"login":"watson","id":10602,"avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","gravatar_id":"","url":"https://api.github.com/users/watson","html_url":"https://github.com/watson","followers_url":"https://api.github.com/users/watson/followers","following_url":"https://api.github.com/users/watson/following{/other_user}","gists_url":"https://api.github.com/users/watson/gists{/gist_id}","starred_url":"https://api.github.com/users/watson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson/subscriptions","organizations_url":"https://api.github.com/users/watson/orgs","repos_url":"https://api.github.com/users/watson/repos","events_url":"https://api.github.com/users/watson/events{/privacy}","received_events_url":"https://api.github.com/users/watson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-02-08T11:08:29Z","updated_at":"2018-02-08T13:45:46Z","closed_at":null,"author_association":"NONE","body":"Versions:\r\n\r\n- node: 8.9.4\r\n- apm-agent-nodejs: 1.0.0\r\n- elasticsearch, apm-server: 6.2\r\n\r\nthe nodejs client throws (briefly after start when first sample is apparently processed) with\r\n```\r\nTypeError: Cannot set property 'request' of null\r\n    at /APPDIR/node_modules/elastic-apm-node/lib/instrumentation/transaction.js:160:31\r\n    at /APPDIR/node_modules/after-all-results/index.js:9:18\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickDomainCallback (internal/process/next_tick.js:218:9)\r\n```\r\n\r\ncorresponding entry in apm-server log:\r\n`2018-02-08T10:55:33.755Z        INFO    [request]       beater/handlers.go:150  handled request {\"request_id\": \"c64c3d8b-e467-4f79-91ce-0af2d185a214\", \"response_code\": 202, \"method\": \"POST\", \"URL\": \"/v1/errors\", \"content_length\": 1410, \"remote_address\": \"9.8.7.6\", \"user_agent\": \"elastic-apm-node/1.0.0 elastic-apm-http-client/5.1.0\"}`\r\n\r\ncontent of elastic-apm-node.js:\r\n```\r\nmodule.exports = {\r\n\tactive: process.env.NODE_ENV === 'production',\r\n\tserviceName: 'service-name',\r\n\tserverUrl: 'http://1.2.3.4:8200',\r\n\tflushInterval: 5,\r\n\tmaxQueueSize: 40,\r\n\tstackTraceLimit: 100,\r\n\ttransactionSampleRate: 0.1\r\n}\r\n```\r\n\r\ngladly tell me what other information would be helpful :-)"},"comment":{"url":"https://api.github.com/repos/elastic/apm-agent-nodejs/issues/comments/364115549","html_url":"https://github.com/elastic/apm-agent-nodejs/issues/235#issuecomment-364115549","issue_url":"https://api.github.com/repos/elastic/apm-agent-nodejs/issues/235","id":364115549,"user":{"login":"consense","id":2467245,"avatar_url":"https://avatars0.githubusercontent.com/u/2467245?v=4","gravatar_id":"","url":"https://api.github.com/users/consense","html_url":"https://github.com/consense","followers_url":"https://api.github.com/users/consense/followers","following_url":"https://api.github.com/users/consense/following{/other_user}","gists_url":"https://api.github.com/users/consense/gists{/gist_id}","starred_url":"https://api.github.com/users/consense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consense/subscriptions","organizations_url":"https://api.github.com/users/consense/orgs","repos_url":"https://api.github.com/users/consense/repos","events_url":"https://api.github.com/users/consense/events{/privacy}","received_events_url":"https://api.github.com/users/consense/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T13:45:46Z","updated_at":"2018-02-08T13:45:46Z","author_association":"NONE","body":"@watson quite the contrary - thanks for looking into this so quickly - amazing!\r\n\r\nReason for trying to tune the performance stem from the experience we had as mentioned in #193 - CPU/memory usage increasing massively when enabling APM. Your comment regarding stack trace # might of course be a giant pointer in this matter (think back then I saw the setting and had wrongly assumed 100 would be lower than your fdefault) - allow me to run with adjusted settings for an hour :-)"}}
{"actor":{"display_login":"consense"}}