{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-xray-sdk-go/issues/16","repository_url":"https://api.github.com/repos/aws/aws-xray-sdk-go","labels_url":"https://api.github.com/repos/aws/aws-xray-sdk-go/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-xray-sdk-go/issues/16/comments","events_url":"https://api.github.com/repos/aws/aws-xray-sdk-go/issues/16/events","html_url":"https://github.com/aws/aws-xray-sdk-go/issues/16","id":255847757,"number":16,"title":"Feature request: \"Facade\" Segment","user":{"login":"lsuss","id":801084,"avatar_url":"https://avatars0.githubusercontent.com/u/801084?v=4","gravatar_id":"","url":"https://api.github.com/users/lsuss","html_url":"https://github.com/lsuss","followers_url":"https://api.github.com/users/lsuss/followers","following_url":"https://api.github.com/users/lsuss/following{/other_user}","gists_url":"https://api.github.com/users/lsuss/gists{/gist_id}","starred_url":"https://api.github.com/users/lsuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsuss/subscriptions","organizations_url":"https://api.github.com/users/lsuss/orgs","repos_url":"https://api.github.com/users/lsuss/repos","events_url":"https://api.github.com/users/lsuss/events{/privacy}","received_events_url":"https://api.github.com/users/lsuss/received_events","type":"User","site_admin":false},"labels":[{"id":650704725,"url":"https://api.github.com/repos/aws/aws-xray-sdk-go/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"luluzhao","id":12831515,"avatar_url":"https://avatars3.githubusercontent.com/u/12831515?v=4","gravatar_id":"","url":"https://api.github.com/users/luluzhao","html_url":"https://github.com/luluzhao","followers_url":"https://api.github.com/users/luluzhao/followers","following_url":"https://api.github.com/users/luluzhao/following{/other_user}","gists_url":"https://api.github.com/users/luluzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/luluzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luluzhao/subscriptions","organizations_url":"https://api.github.com/users/luluzhao/orgs","repos_url":"https://api.github.com/users/luluzhao/repos","events_url":"https://api.github.com/users/luluzhao/events{/privacy}","received_events_url":"https://api.github.com/users/luluzhao/received_events","type":"User","site_admin":false},"assignees":[{"login":"luluzhao","id":12831515,"avatar_url":"https://avatars3.githubusercontent.com/u/12831515?v=4","gravatar_id":"","url":"https://api.github.com/users/luluzhao","html_url":"https://github.com/luluzhao","followers_url":"https://api.github.com/users/luluzhao/followers","following_url":"https://api.github.com/users/luluzhao/following{/other_user}","gists_url":"https://api.github.com/users/luluzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/luluzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luluzhao/subscriptions","organizations_url":"https://api.github.com/users/luluzhao/orgs","repos_url":"https://api.github.com/users/luluzhao/repos","events_url":"https://api.github.com/users/luluzhao/events{/privacy}","received_events_url":"https://api.github.com/users/luluzhao/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aws/aws-xray-sdk-go/milestones/2","html_url":"https://github.com/aws/aws-xray-sdk-go/milestone/2","labels_url":"https://api.github.com/repos/aws/aws-xray-sdk-go/milestones/2/labels","id":2749134,"number":2,"title":"work-in-progress","description":null,"creator":{"login":"luluzhao","id":12831515,"avatar_url":"https://avatars3.githubusercontent.com/u/12831515?v=4","gravatar_id":"","url":"https://api.github.com/users/luluzhao","html_url":"https://github.com/luluzhao","followers_url":"https://api.github.com/users/luluzhao/followers","following_url":"https://api.github.com/users/luluzhao/following{/other_user}","gists_url":"https://api.github.com/users/luluzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/luluzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luluzhao/subscriptions","organizations_url":"https://api.github.com/users/luluzhao/orgs","repos_url":"https://api.github.com/users/luluzhao/repos","events_url":"https://api.github.com/users/luluzhao/events{/privacy}","received_events_url":"https://api.github.com/users/luluzhao/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2017-09-06T22:43:52Z","updated_at":"2017-09-07T19:18:56Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-09-07T07:57:50Z","updated_at":"2017-09-11T09:45:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nIn my use-case I need to create a \"facade\" segment to mimic an existing Segment and send subsegment (and only subsegment) to X-Ray.\r\nThere is an equivalent in the nodejs package [aws-cray-sdk-core](https://www.npmjs.com/package/aws-xray-sdk-core)\r\n\r\n```js\r\nvar facadeSegment = function facadeSegment() {\r\n  var segment = new Segment('facade');\r\n  var whitelistFcn = ['addNewSubsegment', 'addSubsegment', 'removeSubsegment', 'toString'];\r\n  var silentFcn = ['incrementCounter', 'decrementCounter', 'isClosed', 'close', 'format', 'flush'];\r\n  //...\r\n  return segment;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/aws-xray-sdk-go/issues/comments/328478207","html_url":"https://github.com/aws/aws-xray-sdk-go/issues/16#issuecomment-328478207","issue_url":"https://api.github.com/repos/aws/aws-xray-sdk-go/issues/16","id":328478207,"user":{"login":"lsuss","id":801084,"avatar_url":"https://avatars0.githubusercontent.com/u/801084?v=4","gravatar_id":"","url":"https://api.github.com/users/lsuss","html_url":"https://github.com/lsuss","followers_url":"https://api.github.com/users/lsuss/followers","following_url":"https://api.github.com/users/lsuss/following{/other_user}","gists_url":"https://api.github.com/users/lsuss/gists{/gist_id}","starred_url":"https://api.github.com/users/lsuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsuss/subscriptions","organizations_url":"https://api.github.com/users/lsuss/orgs","repos_url":"https://api.github.com/users/lsuss/repos","events_url":"https://api.github.com/users/lsuss/events{/privacy}","received_events_url":"https://api.github.com/users/lsuss/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T09:45:46Z","updated_at":"2017-09-11T09:45:46Z","author_association":"CONTRIBUTOR","body":"@luluzhao thank you for your response. Good to hear it's a work in progress. I would be happy to help by testing it as soon as you make it available :+1: "}}
{"actor":{"display_login":"lsuss"}}