{"action":"closed","number":37,"pull_request":{"url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/37","id":138624634,"html_url":"https://github.com/Azure/azure-functions-durable-extension/pull/37","diff_url":"https://github.com/Azure/azure-functions-durable-extension/pull/37.diff","patch_url":"https://github.com/Azure/azure-functions-durable-extension/pull/37.patch","issue_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues/37","number":37,"state":"closed","locked":false,"title":"Structured Logging to Application Insights.","user":{"login":"tohling","id":14911331,"avatar_url":"https://avatars1.githubusercontent.com/u/14911331?v=4","gravatar_id":"","url":"https://api.github.com/users/tohling","html_url":"https://github.com/tohling","followers_url":"https://api.github.com/users/tohling/followers","following_url":"https://api.github.com/users/tohling/following{/other_user}","gists_url":"https://api.github.com/users/tohling/gists{/gist_id}","starred_url":"https://api.github.com/users/tohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohling/subscriptions","organizations_url":"https://api.github.com/users/tohling/orgs","repos_url":"https://api.github.com/users/tohling/repos","events_url":"https://api.github.com/users/tohling/events{/privacy}","received_events_url":"https://api.github.com/users/tohling/received_events","type":"User","site_admin":false},"body":"Addressing open issue https://github.com/Azure/azure-functions-durable-extension/issues/35\r\n\r\n1. Added support for structured logs to Application Insights.\r\n2. Added tests.\r\n\r\n**Sample query for structure log on Application Insights:**\r\n```\r\ntraces\r\n| extend isReplay = customDimensions[\"prop__isReplay\"]\r\n| extend hubName = customDimensions[\"prop__hubName\"]\r\n| extend functionName = customDimensions [\"prop__functionName\"]\r\n| extend state = customDimensions [\"prop__state\"]\r\n| extend instanceId = customDimensions [\"prop__instanceId\"]\r\n| extend category = customDimensions [\"Category\"]\r\n| where timestamp >= ago(10m)\r\n| where category == \"Microsoft.Azure.WebJobs.Extensions.DurableTask\"\r\n| where hubName == \"UnhandledActivityException\"\r\n| order by timestamp asc\r\n| project timestamp, instanceId, category, hubName, state, isReplay, message \r\n```\r\n\r\n**Snapshot of sample output:**\r\n![appinsights](https://user-images.githubusercontent.com/14911331/29917503-0a491024-8df7-11e7-907e-46ccdb410905.PNG)\r\n\r\n**Snapshot of a typical message's custom dimensions**:\r\n![appinsights2](https://user-images.githubusercontent.com/14911331/29917962-7a0f5afc-8df8-11e7-8f6f-29ef71588fde.PNG)\r\n\r\n","created_at":"2017-08-31T09:50:28Z","updated_at":"2017-09-06T20:52:49Z","closed_at":"2017-09-06T20:52:49Z","merged_at":"2017-09-06T20:52:49Z","merge_commit_sha":"e34644df6c35b9f15c283d7a1399ecc9646a0089","assignee":{"login":"tohling","id":14911331,"avatar_url":"https://avatars1.githubusercontent.com/u/14911331?v=4","gravatar_id":"","url":"https://api.github.com/users/tohling","html_url":"https://github.com/tohling","followers_url":"https://api.github.com/users/tohling/followers","following_url":"https://api.github.com/users/tohling/following{/other_user}","gists_url":"https://api.github.com/users/tohling/gists{/gist_id}","starred_url":"https://api.github.com/users/tohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohling/subscriptions","organizations_url":"https://api.github.com/users/tohling/orgs","repos_url":"https://api.github.com/users/tohling/repos","events_url":"https://api.github.com/users/tohling/events{/privacy}","received_events_url":"https://api.github.com/users/tohling/received_events","type":"User","site_admin":false},"assignees":[{"login":"tohling","id":14911331,"avatar_url":"https://avatars1.githubusercontent.com/u/14911331?v=4","gravatar_id":"","url":"https://api.github.com/users/tohling","html_url":"https://github.com/tohling","followers_url":"https://api.github.com/users/tohling/followers","following_url":"https://api.github.com/users/tohling/following{/other_user}","gists_url":"https://api.github.com/users/tohling/gists{/gist_id}","starred_url":"https://api.github.com/users/tohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohling/subscriptions","organizations_url":"https://api.github.com/users/tohling/orgs","repos_url":"https://api.github.com/users/tohling/repos","events_url":"https://api.github.com/users/tohling/events{/privacy}","received_events_url":"https://api.github.com/users/tohling/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/37/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/37/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues/37/comments","statuses_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/statuses/6349ad526b0b754fdbc1fa417f3831d4a0b7ab69","head":{"label":"tohling:log","ref":"log","sha":"6349ad526b0b754fdbc1fa417f3831d4a0b7ab69","user":{"login":"tohling","id":14911331,"avatar_url":"https://avatars1.githubusercontent.com/u/14911331?v=4","gravatar_id":"","url":"https://api.github.com/users/tohling","html_url":"https://github.com/tohling","followers_url":"https://api.github.com/users/tohling/followers","following_url":"https://api.github.com/users/tohling/following{/other_user}","gists_url":"https://api.github.com/users/tohling/gists{/gist_id}","starred_url":"https://api.github.com/users/tohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohling/subscriptions","organizations_url":"https://api.github.com/users/tohling/orgs","repos_url":"https://api.github.com/users/tohling/repos","events_url":"https://api.github.com/users/tohling/events{/privacy}","received_events_url":"https://api.github.com/users/tohling/received_events","type":"User","site_admin":false},"repo":{"id":99147165,"name":"azure-functions-durable-extension","full_name":"tohling/azure-functions-durable-extension","owner":{"login":"tohling","id":14911331,"avatar_url":"https://avatars1.githubusercontent.com/u/14911331?v=4","gravatar_id":"","url":"https://api.github.com/users/tohling","html_url":"https://github.com/tohling","followers_url":"https://api.github.com/users/tohling/followers","following_url":"https://api.github.com/users/tohling/following{/other_user}","gists_url":"https://api.github.com/users/tohling/gists{/gist_id}","starred_url":"https://api.github.com/users/tohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohling/subscriptions","organizations_url":"https://api.github.com/users/tohling/orgs","repos_url":"https://api.github.com/users/tohling/repos","events_url":"https://api.github.com/users/tohling/events{/privacy}","received_events_url":"https://api.github.com/users/tohling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tohling/azure-functions-durable-extension","description":"Durable Task Framework extension for Azure Functions","fork":true,"url":"https://api.github.com/repos/tohling/azure-functions-durable-extension","forks_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/forks","keys_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/teams","hooks_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/hooks","issue_events_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/issues/events{/number}","events_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/events","assignees_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/assignees{/user}","branches_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/branches{/branch}","tags_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/tags","blobs_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/git/refs{/sha}","trees_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/statuses/{sha}","languages_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/languages","stargazers_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/stargazers","contributors_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/contributors","subscribers_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/subscribers","subscription_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/subscription","commits_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/commits{/sha}","git_commits_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/git/commits{/sha}","comments_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/comments{/number}","issue_comment_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/issues/comments{/number}","contents_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/contents/{+path}","compare_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/merges","archive_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/downloads","issues_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/issues{/number}","pulls_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/pulls{/number}","milestones_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/milestones{/number}","notifications_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/labels{/name}","releases_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/releases{/id}","deployments_url":"https://api.github.com/repos/tohling/azure-functions-durable-extension/deployments","created_at":"2017-08-02T18:09:15Z","updated_at":"2017-08-02T18:09:17Z","pushed_at":"2017-09-06T20:51:30Z","git_url":"git://github.com/tohling/azure-functions-durable-extension.git","ssh_url":"git@github.com:tohling/azure-functions-durable-extension.git","clone_url":"https://github.com/tohling/azure-functions-durable-extension.git","svn_url":"https://github.com/tohling/azure-functions-durable-extension","homepage":null,"size":3839,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:dev","ref":"dev","sha":"657b75e2498f8ff7b960cc1e1a40ef1392bbd1f5","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":93190658,"name":"azure-functions-durable-extension","full_name":"Azure/azure-functions-durable-extension","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-functions-durable-extension","description":"Durable Task Framework extension for Azure Functions","fork":false,"url":"https://api.github.com/repos/Azure/azure-functions-durable-extension","forks_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/forks","keys_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/teams","hooks_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/events","assignees_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/tags","blobs_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/subscription","commits_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/merges","archive_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/downloads","issues_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-functions-durable-extension/deployments","created_at":"2017-06-02T17:51:30Z","updated_at":"2017-09-06T20:46:03Z","pushed_at":"2017-09-06T20:52:49Z","git_url":"git://github.com/Azure/azure-functions-durable-extension.git","ssh_url":"git@github.com:Azure/azure-functions-durable-extension.git","clone_url":"https://github.com/Azure/azure-functions-durable-extension.git","svn_url":"https://github.com/Azure/azure-functions-durable-extension","homepage":null,"size":3809,"stargazers_count":31,"watchers_count":31,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":18,"forks":9,"open_issues":18,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/37"},"html":{"href":"https://github.com/Azure/azure-functions-durable-extension/pull/37"},"issue":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues/37"},"comments":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-functions-durable-extension/statuses/6349ad526b0b754fdbc1fa417f3831d4a0b7ab69"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"tohling","id":14911331,"avatar_url":"https://avatars1.githubusercontent.com/u/14911331?v=4","gravatar_id":"","url":"https://api.github.com/users/tohling","html_url":"https://github.com/tohling","followers_url":"https://api.github.com/users/tohling/followers","following_url":"https://api.github.com/users/tohling/following{/other_user}","gists_url":"https://api.github.com/users/tohling/gists{/gist_id}","starred_url":"https://api.github.com/users/tohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohling/subscriptions","organizations_url":"https://api.github.com/users/tohling/orgs","repos_url":"https://api.github.com/users/tohling/repos","events_url":"https://api.github.com/users/tohling/events{/privacy}","received_events_url":"https://api.github.com/users/tohling/received_events","type":"User","site_admin":false},"comments":1,"review_comments":26,"maintainer_can_modify":false,"commits":1,"additions":709,"deletions":90,"changed_files":18}}
{"actor":{"display_login":"tohling"}}