{"action":"created","issue":{"url":"https://api.github.com/repos/jmxtrans/embedded-jmxtrans/issues/85","labels_url":"https://api.github.com/repos/jmxtrans/embedded-jmxtrans/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/jmxtrans/embedded-jmxtrans/issues/85/comments","events_url":"https://api.github.com/repos/jmxtrans/embedded-jmxtrans/issues/85/events","html_url":"https://github.com/jmxtrans/embedded-jmxtrans/issues/85","id":55263876,"number":85,"title":"LibratoWriter includes descriptive User-Agent","user":{"login":"cyrille-leclerc","id":459691,"avatar_url":"https://avatars.githubusercontent.com/u/459691?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrille-leclerc","html_url":"https://github.com/cyrille-leclerc","followers_url":"https://api.github.com/users/cyrille-leclerc/followers","following_url":"https://api.github.com/users/cyrille-leclerc/following{/other_user}","gists_url":"https://api.github.com/users/cyrille-leclerc/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrille-leclerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrille-leclerc/subscriptions","organizations_url":"https://api.github.com/users/cyrille-leclerc/orgs","repos_url":"https://api.github.com/users/cyrille-leclerc/repos","events_url":"https://api.github.com/users/cyrille-leclerc/events{/privacy}","received_events_url":"https://api.github.com/users/cyrille-leclerc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-23T09:59:59Z","updated_at":"2015-01-23T10:46:16Z","closed_at":null,"body":"Copy of https://github.com/jmxtrans/jmxtrans/issues/216\r\n\r\n@mheffner said\r\n\r\n> I'm from the Librato team. It would help us to include a descriptive User-Agent header in the LibratoWriter that includes \"jmxtrans\" and the version number of jmxtrans, eg. \"jmxtrans/1.2.3\". This would assist in our debugging when working with users that are sending data with jmxtrans to Librato.\r\n> We have a full write-up here: http://support.metrics.librato.com/knowledgebase/articles/175825-how-to-set-a-custom-user-agent-when-integrating-wi"},"comment":{"url":"https://api.github.com/repos/jmxtrans/embedded-jmxtrans/issues/comments/71176564","html_url":"https://github.com/jmxtrans/embedded-jmxtrans/issues/85#issuecomment-71176564","issue_url":"https://api.github.com/repos/jmxtrans/embedded-jmxtrans/issues/85","id":71176564,"user":{"login":"cyrille-leclerc","id":459691,"avatar_url":"https://avatars.githubusercontent.com/u/459691?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrille-leclerc","html_url":"https://github.com/cyrille-leclerc","followers_url":"https://api.github.com/users/cyrille-leclerc/followers","following_url":"https://api.github.com/users/cyrille-leclerc/following{/other_user}","gists_url":"https://api.github.com/users/cyrille-leclerc/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrille-leclerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrille-leclerc/subscriptions","organizations_url":"https://api.github.com/users/cyrille-leclerc/orgs","repos_url":"https://api.github.com/users/cyrille-leclerc/repos","events_url":"https://api.github.com/users/cyrille-leclerc/events{/privacy}","received_events_url":"https://api.github.com/users/cyrille-leclerc/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T10:46:16Z","updated_at":"2015-01-23T10:46:16Z","body":"Hi @mheffner, is there a way to test on my librato account?\r\n\r\nI want to output the HTTP Request Header:\r\n\r\n```\r\nUser-Agent: embedded-jmxtrans/1 (Java HotSpot(TM) 64-Bit Server VM/1.8.0_25; Mac OS X-x86_64/10.10.1)\r\n```\r\n\r\nWhich is the result of:\r\n\r\n```java\r\n\"embedded-jmxtrans/1 \" + \"(\" +\r\n                    System.getProperty(\"java.vm.name\") + \"/\" + System.getProperty(\"java.version\") + \"; \" +\r\n                    System.getProperty(\"os.name\") + \"-\" + System.getProperty(\"os.arch\") + \"/\" + System.getProperty(\"os.version\")\r\n                    + \")\";\r\n```\r\nI am aware of the \"double starting parenthesis caused by `Java HotSpot(TM)`, it is the JVM name that contains this noisy starting parenthesis."}}