elastic / elastic/apm-agent-nodejs

`ignoreUrls` and `transactionIgnoreUrls` doesn't work at all!?!

Open
#3,666 5 comments 0 reactions 0 assignees View on GitHub
agent-nodejs community triage
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

**Describe the bug**

I have the following `ignoreUrls` configured:
```
ignoreUrls: [
/^\/health\//i,
/^\/[._]+next\//i,
/^\/robots.txt/
],
transactionIgnoreUrls: [
'/health/*',
'/.next/*',
'/_next/*',
'/robots.txt'
],
```
But the `_next/*` still appears in APM Transactions in Kibana.
**To Reproduce**

Steps to reproduce the behavior:
1. Use this config '...'
2. Then call '....'
3. Then do '....'
4. See error

**Expected behavior**

**Environment (please complete the following information)**

- OS: [e.g. Linux]
- Node.js version:
- APM Server version:
- Agent version:

**How are you starting the agent? (please tick one of the boxes)**

- [x] Calling `agent.start()` directly (e.g. `require('elastic-apm-node').start(...)`)
- [ ] Requiring `elastic-apm-node/start` from within the source code
- [ ] Starting node with `-r elastic-apm-node/start`

**Additional context**

Agent config options:

Click to expand

```
replace this line with your agent config options
```

`package.json` dependencies:

Click to expand

```
replace this line with your dependencies section from package.json
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.