{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-aspnetcore/issues/708","repository_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-aspnetcore","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-aspnetcore/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-aspnetcore/issues/708/comments","events_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-aspnetcore/issues/708/events","html_url":"https://github.com/Microsoft/ApplicationInsights-aspnetcore/issues/708","id":335013011,"node_id":"MDU6SXNzdWUzMzUwMTMwMTE=","number":708,"title":"Support worker roles through HostBuilder","user":{"login":"lmolkova","id":2347409,"node_id":"MDQ6VXNlcjIzNDc0MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/2347409?v=4","gravatar_id":"","url":"https://api.github.com/users/lmolkova","html_url":"https://github.com/lmolkova","followers_url":"https://api.github.com/users/lmolkova/followers","following_url":"https://api.github.com/users/lmolkova/following{/other_user}","gists_url":"https://api.github.com/users/lmolkova/gists{/gist_id}","starred_url":"https://api.github.com/users/lmolkova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmolkova/subscriptions","organizations_url":"https://api.github.com/users/lmolkova/orgs","repos_url":"https://api.github.com/users/lmolkova/repos","events_url":"https://api.github.com/users/lmolkova/events{/privacy}","received_events_url":"https://api.github.com/users/lmolkova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T20:43:04Z","updated_at":"2018-06-22T20:43:04Z","closed_at":null,"author_association":"COLLABORATOR","body":"Starting with NET Core 2.1, the concept of HostBuilder/Host was introduced:\r\nhttps://www.stevejgordon.co.uk/using-generic-host-in-dotnet-core-console-based-microservices\r\n\r\nIt decouples host creation and management (DI, configuration) from the Asp.NET Core and HTTP stack and enables worker role scenarios.\r\n\r\nApplication Insights AspNet Core SDK should be split into 2 packages: \r\n* first one that works for any app and configures everything not specific to HTTP server: majority of telemetry initializers, dependency collection, performance counter collection, heartbeats, quick pulse, sampling. .Net Full Fx apps perhaps may also benefit from it.\r\n\r\n* second one that depends on AspNetCore and enables http: request collection, JS injection, etc...\r\n\r\nPerfect example where this is needed Azure WebJobs/Functions: they don't necessarily have http stack and have to configure the SDK from scratch.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"lmolkova"}}