{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1081","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/1081/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1081/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1081/events","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/1081","id":355899647,"node_id":"MDU6SXNzdWUzNTU4OTk2NDc=","number":1081,"title":"ClassCastException while using heterogenous spring boot versions","user":{"login":"Andy2003","id":4464522,"node_id":"MDQ6VXNlcjQ0NjQ1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/4464522?v=4","gravatar_id":"","url":"https://api.github.com/users/Andy2003","html_url":"https://github.com/Andy2003","followers_url":"https://api.github.com/users/Andy2003/followers","following_url":"https://api.github.com/users/Andy2003/following{/other_user}","gists_url":"https://api.github.com/users/Andy2003/gists{/gist_id}","starred_url":"https://api.github.com/users/Andy2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andy2003/subscriptions","organizations_url":"https://api.github.com/users/Andy2003/orgs","repos_url":"https://api.github.com/users/Andy2003/repos","events_url":"https://api.github.com/users/Andy2003/events{/privacy}","received_events_url":"https://api.github.com/users/Andy2003/received_events","type":"User","site_admin":false},"labels":[{"id":285141258,"node_id":"MDU6TGFiZWwyODUxNDEyNTg=","url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-31T09:07:41Z","updated_at":"2018-08-31T09:54:04Z","closed_at":null,"author_association":"NONE","body":"Using `spring-cloud-sleuth` `2.0.1-RELEASE` with gpc PubSub in an environment where some services are still using spring boot 1.5 results in this ClassCastException:\r\n\r\n\tAn exception happened when we tried to retrieve the [x-cloud-trace-context] from message java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map\r\n\t\tat org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.doGet(MessageHeaderPropagation.java:123)\r\n\t\tat org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.get(MessageHeaderPropagation.java:94)\r\n\t\tat org.springframework.cloud.sleuth.instrument.messaging.MessageHeaderPropagation.get(MessageHeaderPropagation.java:38)\r\n\t\tat zipkin2.propagation.stackdriver.XCloudTraceContextExtractor.extract(XCloudTraceContextExtractor.java:49)\r\n\t\tat zipkin2.propagation.stackdriver.CompositeExtractor.extract(CompositeExtractor.java:37)\r\n\t\tat org.springframework.cloud.sleuth.instrument.messaging.TracingChannelInterceptor.preSend(TracingChannelInterceptor.java:133)\r\n\t\tat org.springframework.integration.channel.AbstractMessageChannel$ChannelInterceptorList.preSend(AbstractMessageChannel.java:589)\r\n\t\tat org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:435)\r\n\t\tat org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:394)\r\n\t\tat org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:181)\r\n\t\tat org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:160)\r\n\t\tat org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47)\r\n\t\tat org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:108)\r\n\t\tat org.springframework.integration.endpoint.MessageProducerSupport.sendMessage(MessageProducerSupport.java:203)\r\n\t\tat org.springframework.cloud.gcp.pubsub.integration.inbound.PubSubInboundChannelAdapter.receiveMessage(PubSubInboundChannelAdapter.java:79)\r\n\t\tat com.google.cloud.pubsub.v1.MessageDispatcher$4.run(MessageDispatcher.java:403)\r\n\t\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\t\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\t\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\r\n\t\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n\t\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\t\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/comments/417614954","html_url":"https://github.com/spring-cloud/spring-cloud-sleuth/issues/1081#issuecomment-417614954","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-sleuth/issues/1081","id":417614954,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzYxNDk1NA==","user":{"login":"marcingrzejszczak","id":3297437,"node_id":"MDQ6VXNlcjMyOTc0Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/3297437?v=4","gravatar_id":"","url":"https://api.github.com/users/marcingrzejszczak","html_url":"https://github.com/marcingrzejszczak","followers_url":"https://api.github.com/users/marcingrzejszczak/followers","following_url":"https://api.github.com/users/marcingrzejszczak/following{/other_user}","gists_url":"https://api.github.com/users/marcingrzejszczak/gists{/gist_id}","starred_url":"https://api.github.com/users/marcingrzejszczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcingrzejszczak/subscriptions","organizations_url":"https://api.github.com/users/marcingrzejszczak/orgs","repos_url":"https://api.github.com/users/marcingrzejszczak/repos","events_url":"https://api.github.com/users/marcingrzejszczak/events{/privacy}","received_events_url":"https://api.github.com/users/marcingrzejszczak/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T09:54:04Z","updated_at":"2018-08-31T09:54:04Z","author_association":"CONTRIBUTOR","body":"I understand that the fix solves the problem for you, but from our knowledge you're the first ones to have such a problem. Also, you haven't upgraded the other service to the latest Sleuth and Boot versions.\r\n\r\nAnother thing is that you own the way you send the `x-cloud-trace-context`. So either you've changed the format, or we have in Sleuth 2.x. Can you ensure that it's not the first case?"}}
{"actor":{"display_login":"marcingrzejszczak"}}