question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use_path_as_transaction_name has no effect

See original GitHub issue

when using elastic-apm-agent 1.24.0 with a Spring Cloud Gateway application,

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
            <version>3.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-webflux</artifactId>
        </dependency>

I set env

ELASTIC_APM_USE_PATH_AS_TRANSACTION_NAME=true
ELASTIC_APM_DISABLE_INSTRUMENTATIONS=

Transactions are well collected to es but I still get on Kibana >APM>Services>MyService>Transactions POST unknown route or GET unknown route

Am I missing some thing ?

Regards

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
eyalkorencommented, Jul 21, 2021

😄 Thanks for the quick feedback! I just added this config as a fallback for WebFlux, but ideally we would provide better transaction names out of the box, so let’s leave this open for now, maybe we will want to take a deeper look. If you can share a minimal code example that we can use to reproduce, that would be great.

1.25.0 will be released very soon, so soon that I don’t think it will include this fix, so for now stick with this snapshot and you can watch our repo to get notifications only for releases. I hope the next release will follow shortly after.

0reactions
dhannappecommented, Jul 21, 2021

You are a wizard or at least a magician ! It is working now.

My conf:

-javaagent:$ProjectFileDir$/target/appassembler/libs/elastic-apm-agent-1.24.1-SNAPSHOT.jar

and

ELASTIC_APM_SERVER_URL=http://localhost:8200
ELASTIC_APM_USE_PATH_AS_TRANSACTION_NAME=true
ELASTIC_APM_ENABLE_EXPERIMENTAL_INSTRUMENTATIONS=true

I have to replace ELASTIC_APM_DISABLE_INSTRUMENTATIONS= for ELASTIC_APM_ENABLE_EXPERIMENTAL_INSTRUMENTATIONS=true

do you have a release date for this version 1.24.1 ?

Regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data ingestion not working with apm-agent-nodejs v3.29.0
Describe the bug Data ingestion from APM agent not working on express application when using the latest release of the agent module for...
Read more >
Configuration options | APM Node.js Agent Reference [master]
Another side-effect is that the APM agent does not log the uncaught exception to stderr by default. Use logUncaughtExceptions: true to have the...
Read more >
no data in elastic apm for nodejs application - Stack Overflow
When my service starts elastic apm is showing data for CPU usages only, there is no data in transaction/traces.
Read more >
apm - Go Packages
SetDestinationAddress sets the destination address and port in the context. SetDestinationAddress has no effect when called with an empty addr.
Read more >
Node.js Architecture Pitfalls to Avoid - AppSignal Blog
But notice how any code that calls notifyAdmin has no control over ... at least one other function, this change can have cascading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found