{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/go-autorest/issues/298","repository_url":"https://api.github.com/repos/Azure/go-autorest","labels_url":"https://api.github.com/repos/Azure/go-autorest/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/Azure/go-autorest/issues/298/comments","events_url":"https://api.github.com/repos/Azure/go-autorest/issues/298/events","html_url":"https://github.com/Azure/go-autorest/issues/298","id":338795054,"node_id":"MDU6SXNzdWUzMzg3OTUwNTQ=","number":298,"title":"emit traces when env var set","user":{"login":"joshgav","id":4421720,"node_id":"MDQ6VXNlcjQ0MjE3MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/4421720?v=4","gravatar_id":"","url":"https://api.github.com/users/joshgav","html_url":"https://github.com/joshgav","followers_url":"https://api.github.com/users/joshgav/followers","following_url":"https://api.github.com/users/joshgav/following{/other_user}","gists_url":"https://api.github.com/users/joshgav/gists{/gist_id}","starred_url":"https://api.github.com/users/joshgav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshgav/subscriptions","organizations_url":"https://api.github.com/users/joshgav/orgs","repos_url":"https://api.github.com/users/joshgav/repos","events_url":"https://api.github.com/users/joshgav/events{/privacy}","received_events_url":"https://api.github.com/users/joshgav/received_events","type":"User","site_admin":false},"labels":[{"id":948646631,"node_id":"MDU6TGFiZWw5NDg2NDY2MzE=","url":"https://api.github.com/repos/Azure/go-autorest/labels/P1","name":"P1","color":"ededed","default":false},{"id":986089093,"node_id":"MDU6TGFiZWw5ODYwODkwOTM=","url":"https://api.github.com/repos/Azure/go-autorest/labels/Sprint-121","name":"Sprint-121","color":"d4c5f9","default":false},{"id":948496341,"node_id":"MDU6TGFiZWw5NDg0OTYzNDE=","url":"https://api.github.com/repos/Azure/go-autorest/labels/committed","name":"committed","color":"fef2c0","default":false},{"id":948646566,"node_id":"MDU6TGFiZWw5NDg2NDY1NjY=","url":"https://api.github.com/repos/Azure/go-autorest/labels/customer","name":"customer","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"jhendrixMSFT","id":10090263,"node_id":"MDQ6VXNlcjEwMDkwMjYz","avatar_url":"https://avatars0.githubusercontent.com/u/10090263?v=4","gravatar_id":"","url":"https://api.github.com/users/jhendrixMSFT","html_url":"https://github.com/jhendrixMSFT","followers_url":"https://api.github.com/users/jhendrixMSFT/followers","following_url":"https://api.github.com/users/jhendrixMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jhendrixMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jhendrixMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhendrixMSFT/subscriptions","organizations_url":"https://api.github.com/users/jhendrixMSFT/orgs","repos_url":"https://api.github.com/users/jhendrixMSFT/repos","events_url":"https://api.github.com/users/jhendrixMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jhendrixMSFT/received_events","type":"User","site_admin":false},"assignees":[{"login":"jhendrixMSFT","id":10090263,"node_id":"MDQ6VXNlcjEwMDkwMjYz","avatar_url":"https://avatars0.githubusercontent.com/u/10090263?v=4","gravatar_id":"","url":"https://api.github.com/users/jhendrixMSFT","html_url":"https://github.com/jhendrixMSFT","followers_url":"https://api.github.com/users/jhendrixMSFT/followers","following_url":"https://api.github.com/users/jhendrixMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jhendrixMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jhendrixMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhendrixMSFT/subscriptions","organizations_url":"https://api.github.com/users/jhendrixMSFT/orgs","repos_url":"https://api.github.com/users/jhendrixMSFT/repos","events_url":"https://api.github.com/users/jhendrixMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jhendrixMSFT/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-07-06T03:42:25Z","updated_at":"2018-07-26T22:49:13Z","closed_at":"2018-07-26T22:49:12Z","author_association":"MEMBER","body":"Can we add a way (or two) to request traces via configuration?\r\n\r\nToday, getting traces requires source modifications as described in [the SDK README](https://github.com/Azure/azure-sdk-for-go#inspecting-and-debugging). That is difficult and sometimes not possible, e.g. when we're embedded in a tool as in Azure/azure-sdk-for-go#1828.\r\n\r\nThe SDK should emit more raw trace data to stderr when an environment variable is set for the sake of support and troubleshooting. A potential scheme could be to check the env var `AZURE_GO_SDK_LOG_LEVEL=[0|1|2]`, with 0 meaning log nothing; 1 meaning log URLs and headers; and 2 meaning log URLs, headers, and bodies.\r\n\r\nThis should be alongside OpenTracing or OpenCensus spans if/when we add them, meaning I think we still need raw traces sometimes. We can use the same mechanism for both if that makes sense.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"jhendrixMSFT"}}