We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I use spring cloud gateway, I get unknown route in fleet.
plugins { id 'org.springframework.boot' version '3.1.5' id 'io.spring.dependency-management' version '1.1.3' id 'org.jetbrains.kotlin.jvm' version '1.8.22' id 'org.jetbrains.kotlin.plugin.spring' version '1.8.22' } group = 'com.test' version = '0.0.1' java { sourceCompatibility = '17' } jar { enabled = false } repositories { mavenCentral() } springBoot { buildInfo() } ext { set('springCloudVersion', "2022.0.4") } dependencies { implementation 'org.jetbrains.kotlin:kotlin-reflect' implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.cloud:spring-cloud-starter-gateway' implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' implementation 'org.springframework.cloud:spring-cloud-starter-circuitbreaker-reactor-resilience4j' implementation 'org.springframework.cloud:spring-cloud-starter-config' implementation 'io.opentelemetry:opentelemetry-api:1.31.0' testImplementation 'org.springframework.boot:spring-boot-starter-test' } dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" } } tasks.withType(KotlinCompile) { kotlinOptions { freeCompilerArgs += '-Xjsr305=strict' jvmTarget = '17' } } tasks.named('test') { useJUnitPlatform() }
/boin/JAVA17 -javaagent:/elastic-apm.jar -Delastic.apm.service_name=gateway-servicemesh -Delastic.apm.server_url=http://localhost:8200 -Delastic.apm.environment=dev -Delastic.apm.application_packages=gateway -jar -Dspring.profiles.active=dev my-app.jar
Occurred when calling a service after connecting a gateway, service to eureka.
The content you are editing has changed. Please copy your edits and refresh the page.
The text was updated successfully, but these errors were encountered:
https://www.elastic.co/guide/en/apm/agent/java/current/trouble-shooting.html#trouble-shooting-unknown-route do these steps resolve it for you?
Sorry, something went wrong.
Hi @Junnyjun , Solution from link provided above contains solution for your case - try to use https://www.elastic.co/guide/en/apm/agent/java/current/config-http.html#config-use-path-as-transaction-name configuration. I tested it locally with same spring-boot and cloud versions.
This solved it, thank you!
No branches or pull requests
Describe the bug
When I use spring cloud gateway, I get unknown route in fleet.
Steps to reproduce
Expected behavior
Occurred when calling a service after connecting a gateway, service to eureka.
Tasks
The text was updated successfully, but these errors were encountered: