{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/674","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/674/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/674/events","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/674","id":248344439,"number":674,"title":"Trace Ids as String","user":{"login":"ahmednasir91","id":1519532,"avatar_url":"https://avatars2.githubusercontent.com/u/1519532?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmednasir91","html_url":"https://github.com/ahmednasir91","followers_url":"https://api.github.com/users/ahmednasir91/followers","following_url":"https://api.github.com/users/ahmednasir91/following{/other_user}","gists_url":"https://api.github.com/users/ahmednasir91/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmednasir91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmednasir91/subscriptions","organizations_url":"https://api.github.com/users/ahmednasir91/orgs","repos_url":"https://api.github.com/users/ahmednasir91/repos","events_url":"https://api.github.com/users/ahmednasir91/events{/privacy}","received_events_url":"https://api.github.com/users/ahmednasir91/received_events","type":"User","site_admin":false},"labels":[{"id":324599349,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/labels/icebox","name":"icebox","color":"ededed","default":false},{"id":184100573,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-07T08:43:35Z","updated_at":"2017-09-16T19:27:54Z","closed_at":null,"author_association":"NONE","body":"We would like to use Amazon ALB trace Ids, but at the moment we can only provide the implementation of `Random` bean to modify the trace id, also the Ids are of type `long`. \r\n```\r\n    private long createId() {\r\n        return this.random.nextLong();\r\n    }\r\n```\r\n\r\nIs there a workaround to use Amazon Trace Ids, following are some sample trace ids\r\n`X-Amzn-Trace-Id: Root=1-67891233-abcdef012345678912345678`\r\n\r\nhttp://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-request-tracing.html\r\n\r\nOne of the advantage of using ALB Trace ID - that its available in the access logs."},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/comments/329989735","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/674#issuecomment-329989735","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/674","id":329989735,"user":{"login":"ahmednasir91","id":1519532,"avatar_url":"https://avatars2.githubusercontent.com/u/1519532?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmednasir91","html_url":"https://github.com/ahmednasir91","followers_url":"https://api.github.com/users/ahmednasir91/followers","following_url":"https://api.github.com/users/ahmednasir91/following{/other_user}","gists_url":"https://api.github.com/users/ahmednasir91/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmednasir91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmednasir91/subscriptions","organizations_url":"https://api.github.com/users/ahmednasir91/orgs","repos_url":"https://api.github.com/users/ahmednasir91/repos","events_url":"https://api.github.com/users/ahmednasir91/events{/privacy}","received_events_url":"https://api.github.com/users/ahmednasir91/received_events","type":"User","site_admin":false},"created_at":"2017-09-16T19:27:54Z","updated_at":"2017-09-16T19:27:54Z","author_association":"NONE","body":"I'm able to add trace ids to logs\r\nhttps://github.com/ahmednasir91/spring-slueth-amazon-alb-trace/commit/a00ea1033a7cf37985844999b862f010387d088e\r\n\r\n@marcingrzejszczak @adriancole Thanks for the help. Let me know if you guys have some feedback\r\n"}}
{"actor":{"display_login":"ahmednasir91"}}