{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs/issues/128","repository_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs/issues/128/comments","events_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs/issues/128/events","html_url":"https://github.com/Microsoft/ApplicationInsights-SDK-Labs/issues/128","id":254756571,"number":128,"title":"Installing Client Dependency Telemetry Tracking With Code","user":{"login":"vmelamed","id":779687,"avatar_url":"https://avatars3.githubusercontent.com/u/779687?v=4","gravatar_id":"","url":"https://api.github.com/users/vmelamed","html_url":"https://github.com/vmelamed","followers_url":"https://api.github.com/users/vmelamed/followers","following_url":"https://api.github.com/users/vmelamed/following{/other_user}","gists_url":"https://api.github.com/users/vmelamed/gists{/gist_id}","starred_url":"https://api.github.com/users/vmelamed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmelamed/subscriptions","organizations_url":"https://api.github.com/users/vmelamed/orgs","repos_url":"https://api.github.com/users/vmelamed/repos","events_url":"https://api.github.com/users/vmelamed/events{/privacy}","received_events_url":"https://api.github.com/users/vmelamed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-01T21:33:39Z","updated_at":"2017-09-01T23:27:05Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI am very happy to see the telemetry extended to the WCF clients too and am eager to give it a try. However we configure most of our services and clients in code (we have internal framework for that). Can you please include a short example of how to configure the client in code. I figure it should be something like:\r\n\r\n`ChannelFactory.Endpoint.EndpointBehaviors.Add(new ClientTelemetryEndpointBehavior());`\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs/issues/comments/326703856","html_url":"https://github.com/Microsoft/ApplicationInsights-SDK-Labs/issues/128#issuecomment-326703856","issue_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-SDK-Labs/issues/128","id":326703856,"user":{"login":"tomasr","id":16179,"avatar_url":"https://avatars3.githubusercontent.com/u/16179?v=4","gravatar_id":"","url":"https://api.github.com/users/tomasr","html_url":"https://github.com/tomasr","followers_url":"https://api.github.com/users/tomasr/followers","following_url":"https://api.github.com/users/tomasr/following{/other_user}","gists_url":"https://api.github.com/users/tomasr/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasr/subscriptions","organizations_url":"https://api.github.com/users/tomasr/orgs","repos_url":"https://api.github.com/users/tomasr/repos","events_url":"https://api.github.com/users/tomasr/events{/privacy}","received_events_url":"https://api.github.com/users/tomasr/received_events","type":"User","site_admin":false},"created_at":"2017-09-01T23:27:05Z","updated_at":"2017-09-01T23:27:05Z","author_association":"CONTRIBUTOR","body":"Sorry, replied initially before I figured out what you were asking and edited the comment too late!\r\n\r\nBut yes, if you don't want to use the Profiler + ApplicationInsights.config, and want to use code, then simply adding the endpoint behavior is the right way to do it."}}
{"actor":{"display_login":"tomasr"}}