{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Diagnostics/pulls/comments/213774454","pull_request_review_id":150676043,"id":213774454,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzc3NDQ1NA==","diff_hunk":"@@ -6,127 +6,103 @@\n using System.Linq;\n using System.Threading;\n using System.Threading.Tasks;\n+using Microsoft.Extensions.DependencyInjection;\n using Microsoft.Extensions.Logging;\n-using Microsoft.Extensions.Logging.Abstractions;\n \n namespace Microsoft.Extensions.Diagnostics.HealthChecks\n {\n-    /// <summary>\n-    /// Default implementation of <see cref=\"IHealthCheckService\"/>.\n-    /// </summary>\n-    public class HealthCheckService : IHealthCheckService\n+    internal class HealthCheckService : IHealthCheckService\n     {\n+        private readonly IServiceScopeFactory _scopeFactory;\n         private readonly ILogger<HealthCheckService> _logger;\n \n-        /// <summary>\n-        /// A <see cref=\"IReadOnlyDictionary{TKey, T}\"/> containing all the health checks registered in the application.\n-        /// </summary>\n-        /// <remarks>\n-        /// The key maps to the <see cref=\"IHealthCheck.Name\"/> property of the health check, and the value is the <see cref=\"IHealthCheck\"/>\n-        /// instance itself.\n-        /// </remarks>\n-        public IReadOnlyDictionary<string, IHealthCheck> Checks { get; }\n-\n-        /// <summary>\n-        /// Constructs a <see cref=\"HealthCheckService\"/> from the provided collection of <see cref=\"IHealthCheck\"/> instances.\n-        /// </summary>\n-        /// <param name=\"healthChecks\">The <see cref=\"IHealthCheck\"/> instances that have been registered in the application.</param>\n-        public HealthCheckService(IEnumerable<IHealthCheck> healthChecks) : this(healthChecks, NullLogger<HealthCheckService>.Instance) { }\n-\n-        /// <summary>\n-        /// Constructs a <see cref=\"HealthCheckService\"/> from the provided collection of <see cref=\"IHealthCheck\"/> instances, and the provided logger.\n-        /// </summary>\n-        /// <param name=\"healthChecks\">The <see cref=\"IHealthCheck\"/> instances that have been registered in the application.</param>\n-        /// <param name=\"logger\">A <see cref=\"ILogger{T}\"/> that can be used to log events that occur during health check operations.</param>\n-        public HealthCheckService(IEnumerable<IHealthCheck> healthChecks, ILogger<HealthCheckService> logger)\n+        public HealthCheckService(IServiceScopeFactory scopeFactory, ILogger<HealthCheckService> logger)\n         {\n-            healthChecks = healthChecks ?? throw new ArgumentNullException(nameof(healthChecks));\n+            _scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory));\n             _logger = logger ?? throw new ArgumentNullException(nameof(logger));\n \n-            // Scan the list for duplicate names to provide a better error if there are duplicates.\n-            var names = new HashSet<string>(StringComparer.OrdinalIgnoreCase);\n-            var duplicates = new List<string>();\n-            foreach (var check in healthChecks)\n+            // We're specifically going out of our way to do this at startup time. We want to make sure you\n+            // get any kind of health-check related error as early as possible. Waiting until someone\n+            // actually tries to **run** health checks would be real baaaaad.\n+            using (var scope = _scopeFactory.CreateScope())\n             {\n-                if (!names.Add(check.Name))\n-                {\n-                    duplicates.Add(check.Name);\n-                }\n+                var healthChecks = scope.ServiceProvider.GetRequiredService<IEnumerable<IHealthCheck>>();\n+                EnsureNoDuplicates(healthChecks);\n             }\n+        }\n \n-            if (duplicates.Count > 0)\n+        public Task<CompositeHealthCheckResult> CheckHealthAsync(CancellationToken cancellationToken = default) =>\n+            CheckHealthAsync(predicate: null, cancellationToken);\n+\n+        public async Task<CompositeHealthCheckResult> CheckHealthAsync(\n+            Func<IHealthCheck, bool> predicate,\n+            CancellationToken cancellationToken = default)\n+        {\n+            using (var scope = _scopeFactory.CreateScope())\n             {\n-                throw new ArgumentException($\"Duplicate health checks were registered with the name(s): {string.Join(\", \", duplicates)}\", nameof(healthChecks));\n-            }\n+                var healthChecks = scope.ServiceProvider.GetRequiredService<IEnumerable<IHealthCheck>>();\n \n-            Checks = healthChecks.ToDictionary(c => c.Name, StringComparer.OrdinalIgnoreCase);\n+                if (predicate != null)\n+                {\n+                    healthChecks = healthChecks.Where(predicate);\n+                }\n \n-            if (_logger.IsEnabled(LogLevel.Debug))\n-            {\n-                foreach (var check in Checks)\n+                var results = new Dictionary<string, HealthCheckResult>(StringComparer.OrdinalIgnoreCase);\n+                foreach (var healthCheck in healthChecks)\n                 {\n-                    _logger.LogDebug(\"Health check '{healthCheckName}' has been registered\", check.Key);\n+                    cancellationToken.ThrowIfCancellationRequested();\n+\n+                    // If the health check does things like make Database queries using EF or backend HTTP calls,\n+                    // it may be valuable to know that logs it generates are part of a health check. So we start a scope.\n+                    using (_logger.BeginScope(new HealthCheckLogScope(healthCheck.Name)))\n+                    {\n+                        HealthCheckResult result;\n+                        try\n+                        {\n+                            _logger.LogTrace(\"Running health check: {healthCheckName}\", healthCheck.Name);\n+                            result = await healthCheck.CheckHealthAsync(cancellationToken);\n+                            _logger.LogTrace(\"Health check '{healthCheckName}' completed with status '{healthCheckStatus}'\", healthCheck.Name, result.Status);\n+                        }\n+                        catch (Exception ex)\n+                        {\n+                            _logger.LogError(ex, \"Health check '{healthCheckName}' threw an unexpected exception\", healthCheck.Name);\n+                            result = new HealthCheckResult(HealthCheckStatus.Failed, ex, ex.Message, data: null);\n+                        }\n+\n+                        // This can only happen if the result is default(HealthCheckResult)\n+                        if (result.Status == HealthCheckStatus.Unknown)\n+                        {\n+                            // This is different from the case above. We throw here because a health check is doing something specifically incorrect.\n+                            var exception = new InvalidOperationException($\"Health check '{healthCheck.Name}' returned a result with a status of Unknown\");\n+                            _logger.LogError(exception, \"Health check '{healthCheckName}' returned a result with a status of Unknown\", healthCheck.Name);\n+                            throw exception;\n+                        }\n+\n+                        results[healthCheck.Name] = result;\n+                    }\n                 }\n+\n+                return new CompositeHealthCheckResult(results);\n             }\n         }\n \n-        /// <summary>\n-        /// Runs all the health checks in the application and returns the aggregated status.\n-        /// </summary>\n-        /// <param name=\"cancellationToken\">A <see cref=\"CancellationToken\"/> which can be used to cancel the health checks.</param>\n-        /// <returns>\n-        /// A <see cref=\"Task{T}\"/> which will complete when all the health checks have been run,\n-        /// yielding a <see cref=\"CompositeHealthCheckResult\"/> containing the results.\n-        /// </returns>\n-        public Task<CompositeHealthCheckResult> CheckHealthAsync(CancellationToken cancellationToken = default) =>\n-            CheckHealthAsync(Checks.Values, cancellationToken);\n-        \n-        /// <summary>\n-        /// Runs the provided health checks and returns the aggregated status\n-        /// </summary>\n-        /// <param name=\"checks\">The <see cref=\"IHealthCheck\"/> instances to be run.</param>\n-        /// <param name=\"cancellationToken\">A <see cref=\"CancellationToken\"/> which can be used to cancel the health checks.</param>\n-        /// <returns>\n-        /// A <see cref=\"Task{T}\"/> which will complete when all the health checks have been run,\n-        /// yielding a <see cref=\"CompositeHealthCheckResult\"/> containing the results.\n-        /// </returns>\n-        public async Task<CompositeHealthCheckResult> CheckHealthAsync(IEnumerable<IHealthCheck> checks, CancellationToken cancellationToken = default)\n+        private static void EnsureNoDuplicates(IEnumerable<IHealthCheck> healthChecks)\n         {\n-            var results = new Dictionary<string, HealthCheckResult>(Checks.Count, StringComparer.OrdinalIgnoreCase);\n-            foreach (var check in checks)\n+            // Scan the list for duplicate names to provide a better error if there are duplicates.\n+            var names = new HashSet<string>(StringComparer.OrdinalIgnoreCase);\n+            var duplicates = new List<string>();\n+            foreach (var check in healthChecks)\n             {\n-                cancellationToken.ThrowIfCancellationRequested();\n-                // If the health check does things like make Database queries using EF or backend HTTP calls,\n-                // it may be valuable to know that logs it generates are part of a health check. So we start a scope.\n-                using (_logger.BeginScope(new HealthCheckLogScope(check.Name)))\n+                if (!names.Add(check.Name))","path":"src/Microsoft.Extensions.Diagnostics.HealthChecks/HealthCheckService.cs","position":161,"original_position":161,"commit_id":"76f965c6c45ac44d386417ccb88b261ff2dfcc8d","original_commit_id":"76f965c6c45ac44d386417ccb88b261ff2dfcc8d","user":{"login":"pranavkm","id":174281,"node_id":"MDQ6VXNlcjE3NDI4MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/174281?v=4","gravatar_id":"","url":"https://api.github.com/users/pranavkm","html_url":"https://github.com/pranavkm","followers_url":"https://api.github.com/users/pranavkm/followers","following_url":"https://api.github.com/users/pranavkm/following{/other_user}","gists_url":"https://api.github.com/users/pranavkm/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkm/subscriptions","organizations_url":"https://api.github.com/users/pranavkm/orgs","repos_url":"https://api.github.com/users/pranavkm/repos","events_url":"https://api.github.com/users/pranavkm/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkm/received_events","type":"User","site_admin":false},"body":"This would print the same name multiple times if the check is registered more than twice. Think a `GroupBy` would be terse and more correct","created_at":"2018-08-29T17:50:29Z","updated_at":"2018-08-29T17:50:42Z","html_url":"https://github.com/aspnet/Diagnostics/pull/466#discussion_r213774454","pull_request_url":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Diagnostics/pulls/comments/213774454"},"html":{"href":"https://github.com/aspnet/Diagnostics/pull/466#discussion_r213774454"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466","id":210531522,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNTMxNTIy","html_url":"https://github.com/aspnet/Diagnostics/pull/466","diff_url":"https://github.com/aspnet/Diagnostics/pull/466.diff","patch_url":"https://github.com/aspnet/Diagnostics/pull/466.patch","issue_url":"https://api.github.com/repos/aspnet/Diagnostics/issues/466","number":466,"state":"open","locked":false,"title":"Allow health checks to use any DI lifetime","user":{"login":"rynowak","id":1430011,"node_id":"MDQ6VXNlcjE0MzAwMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1430011?v=4","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"body":"This change allows registered IHealthCheck implementations to use any DI\r\nlifetime. This is necessary for scenarios like using EF which requires a\r\nscope.\r\n\r\nThe works by having the health check service create a scope for each\r\ntime it queries health checks. This scope does not overlap or share\r\nstate with other scopes (the request scope) so there is no crosstalk\r\nbetween processing going on per-request in ASP.NET Core and the health\r\ncheck operation.","created_at":"2018-08-23T18:09:51Z","updated_at":"2018-08-29T17:50:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7e6fc37a1ed8ec7bc7a100c0c468aae12a111c1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"davidfowl","id":95136,"node_id":"MDQ6VXNlcjk1MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/95136?v=4","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466/commits","review_comments_url":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466/comments","review_comment_url":"https://api.github.com/repos/aspnet/Diagnostics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Diagnostics/issues/466/comments","statuses_url":"https://api.github.com/repos/aspnet/Diagnostics/statuses/76f965c6c45ac44d386417ccb88b261ff2dfcc8d","head":{"label":"aspnet:rynowak/time-to-di","ref":"rynowak/time-to-di","sha":"76f965c6c45ac44d386417ccb88b261ff2dfcc8d","user":{"login":"aspnet","id":6476660,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0NzY2NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6476660?v=4","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":17548048,"node_id":"MDEwOlJlcG9zaXRvcnkxNzU0ODA0OA==","name":"Diagnostics","full_name":"aspnet/Diagnostics","owner":{"login":"aspnet","id":6476660,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0NzY2NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6476660?v=4","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Diagnostics","description":"Diagnostics middleware for reporting info and handling exceptions and errors in ASP.NET Core, and diagnosing Entity Framework Core migrations errors.","fork":false,"url":"https://api.github.com/repos/aspnet/Diagnostics","forks_url":"https://api.github.com/repos/aspnet/Diagnostics/forks","keys_url":"https://api.github.com/repos/aspnet/Diagnostics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Diagnostics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Diagnostics/teams","hooks_url":"https://api.github.com/repos/aspnet/Diagnostics/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Diagnostics/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Diagnostics/events","assignees_url":"https://api.github.com/repos/aspnet/Diagnostics/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Diagnostics/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Diagnostics/tags","blobs_url":"https://api.github.com/repos/aspnet/Diagnostics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Diagnostics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Diagnostics/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Diagnostics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Diagnostics/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Diagnostics/languages","stargazers_url":"https://api.github.com/repos/aspnet/Diagnostics/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Diagnostics/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Diagnostics/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Diagnostics/subscription","commits_url":"https://api.github.com/repos/aspnet/Diagnostics/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Diagnostics/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Diagnostics/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Diagnostics/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Diagnostics/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Diagnostics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Diagnostics/merges","archive_url":"https://api.github.com/repos/aspnet/Diagnostics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Diagnostics/downloads","issues_url":"https://api.github.com/repos/aspnet/Diagnostics/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Diagnostics/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Diagnostics/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Diagnostics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Diagnostics/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Diagnostics/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Diagnostics/deployments","created_at":"2014-03-08T18:25:57Z","updated_at":"2018-08-29T17:12:13Z","pushed_at":"2018-08-29T17:16:19Z","git_url":"git://github.com/aspnet/Diagnostics.git","ssh_url":"git@github.com:aspnet/Diagnostics.git","clone_url":"https://github.com/aspnet/Diagnostics.git","svn_url":"https://github.com/aspnet/Diagnostics","homepage":"","size":2353,"stargazers_count":158,"watchers_count":158,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":78,"open_issues":7,"watchers":158,"default_branch":"release/2.2"}},"base":{"label":"aspnet:release/2.2","ref":"release/2.2","sha":"5c8b5498820ca4cd1a3ac205eae5643b1a1463ac","user":{"login":"aspnet","id":6476660,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0NzY2NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6476660?v=4","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":17548048,"node_id":"MDEwOlJlcG9zaXRvcnkxNzU0ODA0OA==","name":"Diagnostics","full_name":"aspnet/Diagnostics","owner":{"login":"aspnet","id":6476660,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY0NzY2NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6476660?v=4","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Diagnostics","description":"Diagnostics middleware for reporting info and handling exceptions and errors in ASP.NET Core, and diagnosing Entity Framework Core migrations errors.","fork":false,"url":"https://api.github.com/repos/aspnet/Diagnostics","forks_url":"https://api.github.com/repos/aspnet/Diagnostics/forks","keys_url":"https://api.github.com/repos/aspnet/Diagnostics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Diagnostics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Diagnostics/teams","hooks_url":"https://api.github.com/repos/aspnet/Diagnostics/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Diagnostics/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Diagnostics/events","assignees_url":"https://api.github.com/repos/aspnet/Diagnostics/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Diagnostics/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Diagnostics/tags","blobs_url":"https://api.github.com/repos/aspnet/Diagnostics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Diagnostics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Diagnostics/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Diagnostics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Diagnostics/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Diagnostics/languages","stargazers_url":"https://api.github.com/repos/aspnet/Diagnostics/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Diagnostics/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Diagnostics/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Diagnostics/subscription","commits_url":"https://api.github.com/repos/aspnet/Diagnostics/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Diagnostics/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Diagnostics/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Diagnostics/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Diagnostics/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Diagnostics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Diagnostics/merges","archive_url":"https://api.github.com/repos/aspnet/Diagnostics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Diagnostics/downloads","issues_url":"https://api.github.com/repos/aspnet/Diagnostics/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Diagnostics/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Diagnostics/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Diagnostics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Diagnostics/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Diagnostics/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/Diagnostics/deployments","created_at":"2014-03-08T18:25:57Z","updated_at":"2018-08-29T17:12:13Z","pushed_at":"2018-08-29T17:16:19Z","git_url":"git://github.com/aspnet/Diagnostics.git","ssh_url":"git@github.com:aspnet/Diagnostics.git","clone_url":"https://github.com/aspnet/Diagnostics.git","svn_url":"https://github.com/aspnet/Diagnostics","homepage":"","size":2353,"stargazers_count":158,"watchers_count":158,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":78,"open_issues":7,"watchers":158,"default_branch":"release/2.2"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466"},"html":{"href":"https://github.com/aspnet/Diagnostics/pull/466"},"issue":{"href":"https://api.github.com/repos/aspnet/Diagnostics/issues/466"},"comments":{"href":"https://api.github.com/repos/aspnet/Diagnostics/issues/466/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Diagnostics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Diagnostics/pulls/466/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Diagnostics/statuses/76f965c6c45ac44d386417ccb88b261ff2dfcc8d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"pranavkm"}}