spring-cloud-sleuth icon indicating copy to clipboard operation
spring-cloud-sleuth copied to clipboard

Tried to close span but it is not the current span

Open PBondugula opened this issue 9 years ago • 5 comments

I am getting the below error for the spring sleuth though we don't have any async calls.

org.springframework.cloud.sleuth.util.ExceptionUtils.warn:42|Tried to close span but it is not the current span:
[Trace: e598c982b01eeb55, Span: e598c982b01eeb55, Parent: null, exportable:false].
You may have forgotten to close or detach [Trace: e598c982b01eeb55, Span: 7bad2792543774b0, Parent: e598c982b01eeb55, 
exportable:false]

We have the following dependency in build.gradle file

dependencyManagement {
     imports {
		  mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.SR4"
		  mavenBom 'org.springframework.cloud:spring-cloud-sleuth:1.1.0.BUILD-SNAPSHOT'		  
     }
}
dependencies {	
	compile 'org.springframework.cloud:spring-cloud-starter-sleuth'
	providedCompile group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat'
}

I am using below version.

springBootVersion - '1.4.2.RELEASE'
springGradleDMVersion - '0.6.0.RELEASE'
springCloudVersion - '1.1.1.RELEASE

PBondugula avatar Dec 28 '16 14:12 PBondugula

Hmm your setup seems really strange. Why do you provide sleuth snapshot version if you're using Brixton.SR4? Also can you provide this information:

  • what has happened that this issue was thrown (a request came in or sth?)
  • can you provide a larger log?
  • what is springCloudVersion ? version of what?

The best thing to do would be to provide steps to replicate the issue. Currently I have no idea how to help you since I have no idea what happened

marcingrzejszczak avatar Dec 28 '16 14:12 marcingrzejszczak

I am using the below version, build.gradle looks as below:

apply plugin: 'java'
apply plugin: 'war'
apply plugin: "io.spring.dependency-management"
apply plugin: 'eclipse-wtp'
apply plugin: 'org.springframework.boot' 

def versionNo = '0.0.1.'
def warFileName = "appone.war"

allprojects  {	
	group = 'app.one.sample'
	version = versionNo
	sourceCompatibility = org.gradle.api.JavaVersion.toVersion("1.8")
	targetCompatibility = org.gradle.api.JavaVersion.toVersion("1.8")	
}
archivesBaseName="appone"
war.archiveName = warFileName

buildscript {
    ext {
        springBootVersion = '1.4.2.RELEASE'
        springGradleDMVersion = '0.6.0.RELEASE'
        springCloudVersion = '1.1.1.RELEASE'
    }
	repositories {
    			----
  	}
	dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
    	classpath "io.spring.gradle:dependency-management-plugin:${springGradleDMVersion}"		
	}
}
repositories {        
	---
}
configurations {
    all*.exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
	all*.exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
}
dependencyManagement {
     imports {
		  mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.SR4"
		  mavenBom 'org.springframework.cloud:spring-cloud-sleuth:1.1.0.BUILD-SNAPSHOT'		  
     }
}
dependencies {
	compile 'org.springframework.cloud:spring-cloud-starter-sleuth'
	providedCompile group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat'	
}

PBondugula avatar Dec 30 '16 08:12 PBondugula

Why are you using both maven bom from the release train bom and the sleuth one?

mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.SR4"
		  mavenBom 'org.springframework.cloud:spring-cloud-sleuth:1.1.0.BUILD-SNAPSHOT'

please use just one. Also Still I have no idea what you're doing in your code. Let me copy paste the previous comment

Also can you provide this information:

- what has happened that this issue was thrown (a request came in or sth?)
- can you provide a larger log?

The best thing to do would be to provide steps to replicate the issue. Currently I have no idea how to help you since I have no idea what happened

marcingrzejszczak avatar Dec 30 '16 10:12 marcingrzejszczak

Ping?

marcingrzejszczak avatar Jan 05 '17 11:01 marcingrzejszczak

Ok closing due to inactivity

marcingrzejszczak avatar Jan 11 '17 12:01 marcingrzejszczak