Transaction.name have url repeated twice

Kibana version: 6.5.1

Elasticsearch version: 6.5.1

APM Server version: 6.5.1

APM Agent language and version: Node 2.9.0

The transaction.name field in apm-* index is not coming correctly for all of our transactions.
Value present in index:
transaction.name:POST /provider-training-service/getFilteredPopulatedUserCampaignData/provider-training-service/getFilteredPopulatedUserCampaignData

Correct Value:
transaction.name:POST /provider-training-service/getFilteredPopulatedUserCampaignData

Here the value in index contains the same url two times but it should be only once. Please tell how this can be resolved.

This sounds related to how we interpret the routes in your framework. Could you share a little more information about your setup:

  1. Which framework are you using (module + version)?
  2. How are these particular routes configured that this transaction represents?

Hi Thomas,
We use express framework with node. Given below are the versions:
node version: 8.1.0
express version: 4.17.0
cls-hooked: 4.2.2 as middleware for creating session context

Given below is how we are making service calls:

var options = {
        method: 'POST',
        uri: 'http://' + server_host + ':' + server_port + '/' + called_service_id + '/' + method_name,
        qs: {
          trxn_id: trxn_id,
          client_id: service_id
        },
        body: req,
        json: true,
        timeout: TIMEOUT_MSEC
      };

Please tell if I need to provide any more information.

Thanks,
Shashank

Thanks for the details.

This is most likely related to how the routes in Express are configured (e.g. if you're mounting sub-routes etc). It's not something we've seen before, but there's many ways of configuring routes in Express - and our test suite might not cover all of them. It would therefore be a great help if you could share an example app that reproduces the problem.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.