elastic / elastic/apm-agent-php

Can't block `Unnamed transaction` from /status php-fpm

Open
#1,218 0 comments 1 reaction 0 assignees View on GitHub
agent-php bug
Dominant language
PHP
Stars
268
Forks
86
PR merge metrics
No merged PRs in 30d

Description

I use healthcheck by https://github.com/renatomefi/php-fpm-healthcheck that requests `/status` endpoint php-fpm.

Several options to ignore this url doesn't work:
ENV ELASTIC_APM_TRANSACTION_IGNORE_URLS="*health*, *status*"
ENV ELASTIC_APM_TRANSACTION_IGNORE_URLS="/health, ^/status"
ENV ELASTIC_APM_TRANSACTION_IGNORE_URLS="/health, /status"
ENV ELASTIC_APM_TRANSACTION_IGNORE_URLS="/health, \*/status\*"

Client apm version: 1.13.1.

![Image](https://github.com/user-attachments/assets/fa2dfd03-6294-4fbc-914c-5c5a518a4d54)

Steps to reproduce the behavior:
1. Config php-fpm status
```sh
[www]
listen = 9000
pm.status_path = /status
```
3. config by envs ENV ELASTIC_APM_TRANSACTION_IGNORE_URLS="/health, /status"
4. Run `php-fpm-healthcheck`

**Expected behavior**
No `Unnamed transaction` transaction in APM

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.