{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1030","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1030/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1030/events","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/1030","id":341253997,"node_id":"MDU6SXNzdWUzNDEyNTM5OTc=","number":1030,"title":"@NewSpan does not generate a new span Id for methods using Mono.subscriberContext","user":{"login":"nnanda2016","id":17140672,"node_id":"MDQ6VXNlcjE3MTQwNjcy","avatar_url":"https://avatars0.githubusercontent.com/u/17140672?v=4","gravatar_id":"","url":"https://api.github.com/users/nnanda2016","html_url":"https://github.com/nnanda2016","followers_url":"https://api.github.com/users/nnanda2016/followers","following_url":"https://api.github.com/users/nnanda2016/following{/other_user}","gists_url":"https://api.github.com/users/nnanda2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nnanda2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnanda2016/subscriptions","organizations_url":"https://api.github.com/users/nnanda2016/orgs","repos_url":"https://api.github.com/users/nnanda2016/repos","events_url":"https://api.github.com/users/nnanda2016/events{/privacy}","received_events_url":"https://api.github.com/users/nnanda2016/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-14T17:51:48Z","updated_at":"2018-08-10T16:13:41Z","closed_at":null,"author_association":"NONE","body":"I am using:\r\n- `Finchley.RELEASE` release train\r\n- Spring boot `2.0.3`\r\n\r\nIf I use `Mono.subscriberContext()` in a method and annotate the method with `@NewSpan(name=\"myMethod\")`, no new span ID is generated for that method.\r\n\r\nReference Repo: https://github.com/nnanda2016/springboot-sleuth-issue \r\n\r\nThe method `com.demo.springboot.sleuth.UserApiHandler#getById2` is the buggy one I am talking about. No new span Id is generated if I invoke this method (URL to invoke this: `curl -v http://localhost:5002/users/ids/U1`).\r\n\r\nIf I remove `Mono.subscriberContext()`, everything is working fine as expected. Example method in this sample app is `com.demo.springboot.sleuth.UserApiHandler#getById` (URL to invoke this: `curl -v http://localhost:5002/users/U1`).\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/comments/412131261","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/1030#issuecomment-412131261","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1030","id":412131261,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjEzMTI2MQ==","user":{"login":"kptfh","id":15799370,"node_id":"MDQ6VXNlcjE1Nzk5Mzcw","avatar_url":"https://avatars1.githubusercontent.com/u/15799370?v=4","gravatar_id":"","url":"https://api.github.com/users/kptfh","html_url":"https://github.com/kptfh","followers_url":"https://api.github.com/users/kptfh/followers","following_url":"https://api.github.com/users/kptfh/following{/other_user}","gists_url":"https://api.github.com/users/kptfh/gists{/gist_id}","starred_url":"https://api.github.com/users/kptfh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kptfh/subscriptions","organizations_url":"https://api.github.com/users/kptfh/orgs","repos_url":"https://api.github.com/users/kptfh/repos","events_url":"https://api.github.com/users/kptfh/events{/privacy}","received_events_url":"https://api.github.com/users/kptfh/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T16:13:41Z","updated_at":"2018-08-10T16:13:41Z","author_association":"CONTRIBUTOR","body":"@marcingrzejszczak  Investigating this issue found that there is a bug in my recent pull request (didn't set new span in trace context). Will add tests and fix soon."}}
{"actor":{"display_login":"kptfh"}}