{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/138","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/138/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/138/events","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/138","id":130414677,"number":138,"title":"Sampler should accept a Span a a method parameter","user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-01T16:44:51Z","updated_at":"2016-02-01T16:44:51Z","closed_at":null,"body":"The implementation of `PercentageBasedSampler` shows us the flaw: you need a `Span` to compute the sample rate, but the sampler is needed to create a `DefaultTracer`."}}