{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/3448","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/3448/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/3448/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/3448/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3448","id":230550237,"number":3448,"title":"Send trace context with logs from web applications","user":{"login":"liyanhui1228","id":12888824,"avatar_url":"https://avatars3.githubusercontent.com/u/12888824?v=4","gravatar_id":"","url":"https://api.github.com/users/liyanhui1228","html_url":"https://github.com/liyanhui1228","followers_url":"https://api.github.com/users/liyanhui1228/followers","following_url":"https://api.github.com/users/liyanhui1228/following{/other_user}","gists_url":"https://api.github.com/users/liyanhui1228/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanhui1228/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanhui1228/subscriptions","organizations_url":"https://api.github.com/users/liyanhui1228/orgs","repos_url":"https://api.github.com/users/liyanhui1228/repos","events_url":"https://api.github.com/users/liyanhui1228/events{/privacy}","received_events_url":"https://api.github.com/users/liyanhui1228/received_events","type":"User","site_admin":false},"labels":[{"id":131682860,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/cla:%20no","name":"cla: no","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-05-22T23:54:08Z","updated_at":"2018-02-09T10:39:19Z","closed_at":"2017-06-02T22:24:03Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/pulls/3448","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3448","diff_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3448.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3448.patch"},"body":"For #3359. This feature add the trace_id to GAE app logs and enables the logs correlation based on the trace_id.\r\n\r\nFor flask the trace_id is extracted from request headers, for django I used a middleware to store the request in thread local, and then get the trace_id from it. The user will need to add the middleware to django settings before deploy the app. Will add the unit test later."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/comments/364398619","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3448#issuecomment-364398619","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/3448","id":364398619,"user":{"login":"tcroiset","id":2507403,"avatar_url":"https://avatars0.githubusercontent.com/u/2507403?v=4","gravatar_id":"","url":"https://api.github.com/users/tcroiset","html_url":"https://github.com/tcroiset","followers_url":"https://api.github.com/users/tcroiset/followers","following_url":"https://api.github.com/users/tcroiset/following{/other_user}","gists_url":"https://api.github.com/users/tcroiset/gists{/gist_id}","starred_url":"https://api.github.com/users/tcroiset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcroiset/subscriptions","organizations_url":"https://api.github.com/users/tcroiset/orgs","repos_url":"https://api.github.com/users/tcroiset/repos","events_url":"https://api.github.com/users/tcroiset/events{/privacy}","received_events_url":"https://api.github.com/users/tcroiset/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T10:39:19Z","updated_at":"2018-02-09T10:39:19Z","author_association":"NONE","body":"Hi @liyanhui1228 \r\nCan't find doc for that.\r\nDo you have any example of appropriate django settings?"}}
{"actor":{"display_login":"tcroiset"}}