{"action":"created","issue":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-specs/issues/151","repository_url":"https://api.github.com/repos/census-instrumentation/opencensus-specs","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-specs/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-specs/issues/151/comments","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-specs/issues/151/events","html_url":"https://github.com/census-instrumentation/opencensus-specs/issues/151","id":344277500,"node_id":"MDU6SXNzdWUzNDQyNzc1MDA=","number":151,"title":"Don't trace health endpoints","user":{"login":"rakyll","id":108380,"node_id":"MDQ6VXNlcjEwODM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/108380?v=4","gravatar_id":"","url":"https://api.github.com/users/rakyll","html_url":"https://github.com/rakyll","followers_url":"https://api.github.com/users/rakyll/followers","following_url":"https://api.github.com/users/rakyll/following{/other_user}","gists_url":"https://api.github.com/users/rakyll/gists{/gist_id}","starred_url":"https://api.github.com/users/rakyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakyll/subscriptions","organizations_url":"https://api.github.com/users/rakyll/orgs","repos_url":"https://api.github.com/users/rakyll/repos","events_url":"https://api.github.com/users/rakyll/events{/privacy}","received_events_url":"https://api.github.com/users/rakyll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-07-25T03:19:06Z","updated_at":"2019-04-03T11:05:29Z","closed_at":null,"author_association":"MEMBER","body":"Tracing canonical HTTP health endpoints such as /healthz and /_ah/health generate lots of traces. This results in additional high cost when collecting and storing spans for these endpoints, as well as noise at visualizing time.\r\n\r\nHTTP tracing integrations should by default disable the tracing of:\r\n\r\n* /healthz\r\n* /_ah/health\r\n\r\nOther canonical health endpoints can later be added to the list."},"comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-specs/issues/comments/479443034","html_url":"https://github.com/census-instrumentation/opencensus-specs/issues/151#issuecomment-479443034","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-specs/issues/151","id":479443034,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3OTQ0MzAzNA==","user":{"login":"montanaflynn","id":24260,"node_id":"MDQ6VXNlcjI0MjYw","avatar_url":"https://avatars2.githubusercontent.com/u/24260?v=4","gravatar_id":"","url":"https://api.github.com/users/montanaflynn","html_url":"https://github.com/montanaflynn","followers_url":"https://api.github.com/users/montanaflynn/followers","following_url":"https://api.github.com/users/montanaflynn/following{/other_user}","gists_url":"https://api.github.com/users/montanaflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/montanaflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montanaflynn/subscriptions","organizations_url":"https://api.github.com/users/montanaflynn/orgs","repos_url":"https://api.github.com/users/montanaflynn/repos","events_url":"https://api.github.com/users/montanaflynn/events{/privacy}","received_events_url":"https://api.github.com/users/montanaflynn/received_events","type":"User","site_admin":false},"created_at":"2019-04-03T11:05:29Z","updated_at":"2019-04-03T11:05:29Z","author_association":"NONE","body":"Actually I just figured it out using `GetStartOptions`:\r\n\r\n```go\r\n&http.Server{\r\n\tAddr: addr,\r\n\tHandler: &ochttp.Handler{\r\n\t\tHandler: handler,\r\n\t\tGetStartOptions: func(r *http.Request) trace.StartOptions {\r\n\t\t\tstartOptions := trace.StartOptions{}\r\n\t\t\tif r.UserAgent() == \"ELB-HealthChecker/2.0\" {\r\n\t\t\t\tstartOptions.Sampler = trace.NeverSample()\r\n\t\t\t}\r\n\t\t\treturn startOptions\r\n\t\t},\r\n\t},\r\n}\r\n```"}}
{"actor":{"display_login":"montanaflynn"}}