# \#php

**URL:** https://discuss.elastic.co/tag/php/48.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [APM - Stack trace Is not registering for captured exceptions](https://discuss.elastic.co/t/apm-stack-trace-is-not-registering-for-captured-exceptions/381593)

<div class="topic-metadata">

**Author:** [@oliverkuchies](https://discuss.elastic.co/u/oliverkuchies)\
**Replies:** 2\
**Last updated:** [September 4, 2025, 1:59am UTC](https://discuss.elastic.co/t/apm-stack-trace-is-not-registering-for-captured-exceptions/381593 "2025-09-04T01:59:49Z")

</div>

APM Server version: v 8.17.0 APM Agent language and version: apm-agent-php\_1.15.0\_amd64.deb Browser version: Arc 139.0.7258.128 (Official Build) (arm64) Original install method (e.g. download page, yum, deb, from sour…

---

## [\[PHP APM Agent\] - span support for SOAP APIs?](https://discuss.elastic.co/t/php-apm-agent-span-support-for-soap-apis/358152)

<div class="topic-metadata">

**Author:** [@nhowe1991](https://discuss.elastic.co/u/nhowe1991)\
**Replies:** 1\
**Last updated:** [February 16, 2025, 3:24pm UTC](https://discuss.elastic.co/t/php-apm-agent-span-support-for-soap-apis/358152 "2025-02-16T15:24:34Z")

</div>

We just started leveraging some of APM on our Elastic cluster, and it is going well so far except for one thing. We have multiple services that interact with different APIs via the SOAPClient class that is built into PH…

---

## [How to use php agent with php](https://discuss.elastic.co/t/how-to-use-php-agent-with-php/370625)

<div class="topic-metadata">

**Author:** [@Anubhav\_Jha](https://discuss.elastic.co/u/Anubhav_Jha)\
**Replies:** 2\
**Last updated:** [November 25, 2024, 7:48am UTC](https://discuss.elastic.co/t/how-to-use-php-agent-with-php/370625 "2024-11-25T07:48:27Z")

</div>

Hello All, I have installed php 8.0 and configured the php.ini file. I can see the elastic\_apm is loaded onto the php extensions. Now my question is how or where do I get a sample script so that I can send the data fro…

---

## [APM PHP External APIs Missing](https://discuss.elastic.co/t/apm-php-external-apis-missing/369899)

<div class="topic-metadata">

**Author:** [@taha\_wajahat](https://discuss.elastic.co/u/taha_wajahat)\
**Replies:** 1\
**Last updated:** [November 6, 2024, 8:17am UTC](https://discuss.elastic.co/t/apm-php-external-apis-missing/369899 "2024-11-06T08:17:15Z")

</div>

Hi, I have installed a self-managed elk for apm and using it for my multiple laravel apps with different PHP versions. I am facing and issue where its capturing the external APIs for some of my laravel apps but not all …

---

## [Where to go in Kibana to see Span details for APM?](https://discuss.elastic.co/t/where-to-go-in-kibana-to-see-span-details-for-apm/368056)

<div class="topic-metadata">

**Author:** [@learningelastic](https://discuss.elastic.co/u/learningelastic)\
**Replies:** 3\
**Last updated:** [October 8, 2024, 12:16pm UTC](https://discuss.elastic.co/t/where-to-go-in-kibana-to-see-span-details-for-apm/368056 "2024-10-08T12:16:56Z")

</div>

I'm trying to learn how spans work with Elasticsearch 8.8 + APM + PHP. So far it seems my Fleet Server, APM, ELK stack is working. I also got PHP to submit transactions, exceptions and errors to the APM. The only thin…

---

## [APM Rum Js and APM php agent does not have the same trace id](https://discuss.elastic.co/t/apm-rum-js-and-apm-php-agent-does-not-have-the-same-trace-id/365350)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 3\
**Last updated:** [August 28, 2024, 8:18am UTC](https://discuss.elastic.co/t/apm-rum-js-and-apm-php-agent-does-not-have-the-same-trace-id/365350 "2024-08-28T08:18:39Z")

</div>

i have imported the images of docker of WordPress and database is maria db which is automatically connected to it in WordPress For frontend i have installed the apm rum js script in header.php of the main theme. and i …

---

## [How to overcome this ( Transaction has 24 milliseconds difference of event in apm rum js and apm php agent )](https://discuss.elastic.co/t/how-to-overcome-this-transaction-has-24-milliseconds-difference-of-event-in-apm-rum-js-and-apm-php-agent/365662)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 0\
**Last updated:** [August 28, 2024, 7:47am UTC](https://discuss.elastic.co/t/how-to-overcome-this-transaction-has-24-milliseconds-difference-of-event-in-apm-rum-js-and-apm-php-agent/365662 "2024-08-28T07:47:04Z")

</div>

i have php agent installed in WordPress docker container and in frontend i have added rum js, now when my user visits the the shop page or my-account, php agent runs first to create first , my frontend rum js transactio…

---

## [@timestamp difference in AMP RUM JS and APM PHP agent logs](https://discuss.elastic.co/t/timestamp-difference-in-amp-rum-js-and-apm-php-agent-logs/365550)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 0\
**Last updated:** [August 26, 2024, 1:33pm UTC](https://discuss.elastic.co/t/timestamp-difference-in-amp-rum-js-and-apm-php-agent-logs/365550 "2024-08-26T13:33:14Z")

</div>

i have setup the APM RUM JS on front end and apm php agent in backend. i am facing in issue of @timestamp. it takes time to ingest the data in elastic and almost 24+ seconds difference you can find the frontend back…

---

## [Status code is not being received in backend php agent and rum js agent](https://discuss.elastic.co/t/status-code-is-not-being-received-in-backend-php-agent-and-rum-js-agent/365440)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 0\
**Last updated:** [August 23, 2024, 8:51am UTC](https://discuss.elastic.co/t/status-code-is-not-being-received-in-backend-php-agent-and-rum-js-agent/365440 "2024-08-23T08:51:55Z")

</div>

i am using php agent at backend in WordPress as in my functions.php i have loaded the and added some labels on transactions nothing else. then i have added the rum js script tags in header of the WordPress and used label…

---

## [Transaction headers for APM](https://discuss.elastic.co/t/transaction-headers-for-apm/362713)

<div class="topic-metadata">

**Author:** [@KleinenberG](https://discuss.elastic.co/u/KleinenberG)\
**Replies:** 1\
**Last updated:** [July 16, 2024, 7:23am UTC](https://discuss.elastic.co/t/transaction-headers-for-apm/362713 "2024-07-16T07:23:46Z")

</div>

Hello everyone! I'm facing a problem. Maybe you can tell me something. Deployed php elastic apm agent. In the logs I fix errors $\_SERVER does not contain \`HTTP\_HOST' key Failed to discover path part of URL to derive tr…

---

## [How can I collect less span data and reduce storage data from the application using APM?](https://discuss.elastic.co/t/how-can-i-collect-less-span-data-and-reduce-storage-data-from-the-application-using-apm/362447)

<div class="topic-metadata">

**Author:** [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Replies:** 5\
**Last updated:** [July 8, 2024, 7:50am UTC](https://discuss.elastic.co/t/how-can-i-collect-less-span-data-and-reduce-storage-data-from-the-application-using-apm/362447 "2024-07-08T07:50:33Z")

</div>

Hi Team, Currently we have integrated one of our wordpress applications with APM and it is collecting 1 gb data per hour. When I see the details, most of the data is for the spans. Do we have any way to reduce the span…

---

## [Is my understanding of transactions and spans off?](https://discuss.elastic.co/t/is-my-understanding-of-transactions-and-spans-off/361452)

<div class="topic-metadata">

**Author:** [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 11:07pm UTC](https://discuss.elastic.co/t/is-my-understanding-of-transactions-and-spans-off/361452 "2024-06-13T23:07:13Z")

</div>

I'm trying to figure out how to use APM. Specifically in my PHP application. It's Symfony 6, so no automatic instrumentation. I'm also new to any kind of APM at all. I've done a bit of reading on the subject, but not eno…

---

## [APM (observability): what rights of secret token?](https://discuss.elastic.co/t/apm-observability-what-rights-of-secret-token/361094)

<div class="topic-metadata">

**Author:** [@NominaSumpta](https://discuss.elastic.co/u/NominaSumpta)\
**Replies:** 0\
**Last updated:** [June 9, 2024, 9:55am UTC](https://discuss.elastic.co/t/apm-observability-what-rights-of-secret-token/361094 "2024-06-09T09:55:07Z")

</div>

What rights does the secret token have? Or, put differently, what risk exists when it is leaked? APM supports secret tokens. I specify one in the server config (apm-server.auth.secret\_token), then in the agent (e.g . e…

---

## [PHP agent: sampling-based profiler out of beta?](https://discuss.elastic.co/t/php-agent-sampling-based-profiler-out-of-beta/361098)

<div class="topic-metadata">

**Author:** [@NominaSumpta](https://discuss.elastic.co/u/NominaSumpta)\
**Replies:** 0\
**Last updated:** [June 9, 2024, 11:18am UTC](https://discuss.elastic.co/t/php-agent-sampling-based-profiler-out-of-beta/361098 "2024-06-09T11:18:55Z")

</div>

When is the sampling-based profiler (profiling\_inferred\_spans\_enabled) expected to be out of beta? Configuration reference | APM PHP Agent Reference \[1.x\] | Elastic says: This functionality is in technical preview and…

---

## [Elastic APM PHP Tracer. Sending events to APM Server failed. Exiting...; resultCode: resultFailure (6);](https://discuss.elastic.co/t/elastic-apm-php-tracer-sending-events-to-apm-server-failed-exiting-resultcode-resultfailure-6/359685)

<div class="topic-metadata">

**Author:** [@Julian\_Fazri](https://discuss.elastic.co/u/Julian_Fazri)\
**Replies:** 5\
**Last updated:** [May 20, 2024, 7:38am UTC](https://discuss.elastic.co/t/elastic-apm-php-tracer-sending-events-to-apm-server-failed-exiting-resultcode-resultfailure-6/359685 "2024-05-20T07:38:13Z")

</div>

Hi All, got error when I install APM agent for PHP. I have follow the documentation from APM PHP Agent Reference \[1.x\] | Elastic But I still got no clues what is the problem. Kibana version: 8.12 Elasticsearch version:…

---

## [How to define span.destination.service.resource witn OpenTelemetry integration?](https://discuss.elastic.co/t/how-to-define-span-destination-service-resource-witn-opentelemetry-integration/353305)

<div class="topic-metadata">

**Author:** [@davidpocar](https://discuss.elastic.co/u/davidpocar)\
**Replies:** 9\
**Last updated:** [March 20, 2024, 11:39am UTC](https://discuss.elastic.co/t/how-to-define-span-destination-service-resource-witn-opentelemetry-integration/353305 "2024-03-20T11:39:12Z")

</div>

Hello, I am using Open Telemetry integration with APM and am unable to define span.destination.service.resource. I understand there is some mapping going on, as stated here: apm/specs/agents/tracing-api-otel.md at main…

---

## [PHP Agent Parallel Processing Issue - Magento](https://discuss.elastic.co/t/php-agent-parallel-processing-issue-magento/355261)

<div class="topic-metadata">

**Author:** [@Oscar\_Aguilar](https://discuss.elastic.co/u/Oscar_Aguilar)\
**Replies:** 0\
**Last updated:** [March 12, 2024, 8:16pm UTC](https://discuss.elastic.co/t/php-agent-parallel-processing-issue-magento/355261 "2024-03-12T20:16:45Z")

</div>

Hello, Our PHP Agent is producing critical errors when we attempt to run parallel processes from the PHP app we're monitoring (Magento). Magento has the ability to deploy static assets in parallel to speed up compilatio…

---

## [Couldn't connect to server](https://discuss.elastic.co/t/couldnt-connect-to-server/353058)

<div class="topic-metadata">

**Author:** [@Jean-Claude](https://discuss.elastic.co/u/Jean-Claude)\
**Replies:** 4\
**Last updated:** [February 14, 2024, 3:07pm UTC](https://discuss.elastic.co/t/couldnt-connect-to-server/353058 "2024-02-14T15:07:42Z")

</div>

Hello Kibana version: 8.12 Elasticsearch version: 8.12 APM Server version: 8.12 APM Agent language and version: php v1.13.0 Browser version: firefox 122.0.1 (64 bits) Original install method (e.g. download page, y…

---

## [Why Opentelemetry spans with same trace ids could have different transaction ids?](https://discuss.elastic.co/t/why-opentelemetry-spans-with-same-trace-ids-could-have-different-transaction-ids/352916)

<div class="topic-metadata">

**Author:** [@toporovvv](https://discuss.elastic.co/u/toporovvv)\
**Replies:** 0\
**Last updated:** [February 9, 2024, 9:38am UTC](https://discuss.elastic.co/t/why-opentelemetry-spans-with-same-trace-ids-could-have-different-transaction-ids/352916 "2024-02-09T09:38:04Z")

</div>

I see a strange behavior for Opentelemetry integration. We have applications in PHP and Go which are linked with GRPC. I've made a manual Opentelemetry integration for PHP (with GRPC transport). However there is a strang…

---

## [I am getting the error while setting on Runcloud Based Setup on Normal setup its working like a charm but on Runcloud I am have this issue](https://discuss.elastic.co/t/i-am-getting-the-error-while-setting-on-runcloud-based-setup-on-normal-setup-its-working-like-a-charm-but-on-runcloud-i-am-have-this-issue/352834)

<div class="topic-metadata">

**Author:** [@Arya\_Aniket](https://discuss.elastic.co/u/Arya_Aniket)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 8:59am UTC](https://discuss.elastic.co/t/i-am-getting-the-error-while-setting-on-runcloud-based-setup-on-normal-setup-its-working-like-a-charm-but-on-runcloud-i-am-have-this-issue/352834 "2024-02-08T08:59:20Z")

</div>

I am using LEMP setup and we are using Runcloud service for deploying the wordpress apps and Laravel apps. On raw LEMP setup its working fine but on runcloud I am getting this issue. This issue is regarding open\_basedir. …

---

## [PHP APM Agent is not picking up the routes](https://discuss.elastic.co/t/php-apm-agent-is-not-picking-up-the-routes/352080)

<div class="topic-metadata">

**Author:** [@Ali\_Mehdi](https://discuss.elastic.co/u/Ali_Mehdi)\
**Replies:** 6\
**Last updated:** [January 31, 2024, 11:01am UTC](https://discuss.elastic.co/t/php-apm-agent-is-not-picking-up-the-routes/352080 "2024-01-31T11:01:56Z")

</div>

Kibana version: 8.11 Elasticsearch version:8.11 APM Server version:fleet managed apm 8.11 APM Agent language and version:apm-agent-php v1.12.0 Browser version: Version 121.0.6167.85 Original install method (e.g. do…

---

## [APM/Kibana: Redis not shown as a Dependency in php agent](https://discuss.elastic.co/t/apm-kibana-redis-not-shown-as-a-dependency-in-php-agent/350508)

<div class="topic-metadata">

**Author:** [@hetii](https://discuss.elastic.co/u/hetii)\
**Replies:** 0\
**Last updated:** [January 6, 2024, 10:30am UTC](https://discuss.elastic.co/t/apm-kibana-redis-not-shown-as-a-dependency-in-php-agent/350508 "2024-01-06T10:30:24Z")

</div>

Hi. I have a drupal instance that use redis. In the Newrelic I see redis as a dependency. For APM in kibana it's missing. Any clue or tip how to force it to be included? APM agent: apm-agent-php\_1.10.0\_all.apk APM …

---

## [Elastic APM agent and opentelemetry-php](https://discuss.elastic.co/t/elastic-apm-agent-and-opentelemetry-php/346775)

<div class="topic-metadata">

**Author:** [@ArtemisMucaj](https://discuss.elastic.co/u/ArtemisMucaj)\
**Replies:** 2\
**Last updated:** [November 13, 2023, 1:58pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-and-opentelemetry-php/346775 "2023-11-13T13:58:34Z")

</div>

Hi, I have a question about the vision of the Elastic team about the Elastic APM PHP agent and the OpenTelemetry PHP agent (which hit a stable version not so long ago). What's the vision? Will development happen in both…

---

## [Delay in first SPAN in some transactions](https://discuss.elastic.co/t/delay-in-first-span-in-some-transactions/346333)

<div class="topic-metadata">

**Author:** [@sheugen](https://discuss.elastic.co/u/sheugen)\
**Replies:** 0\
**Last updated:** [November 3, 2023, 7:29am UTC](https://discuss.elastic.co/t/delay-in-first-span-in-some-transactions/346333 "2023-11-03T07:29:34Z")

</div>

Kibana version: v8.10.2 Elasticsearch version: v8.10.2 APM Server version:v8.10.2 APM Agent language and version: PHP v1.10.0 Original install method (e.g. download page, yum, deb, from source, etc.) and version: Ins…

---

## [My elastic apm is not showing stack trace of a transaction](https://discuss.elastic.co/t/my-elastic-apm-is-not-showing-stack-trace-of-a-transaction/342467)

<div class="topic-metadata">

**Author:** [@Mansoor\_Ur\_Rehman](https://discuss.elastic.co/u/Mansoor_Ur_Rehman)\
**Replies:** 10\
**Last updated:** [September 28, 2023, 10:03am UTC](https://discuss.elastic.co/t/my-elastic-apm-is-not-showing-stack-trace-of-a-transaction/342467 "2023-09-28T10:03:01Z")

</div>

my elastic apm is not showing stack trace of a transaction i have shared the picture Kibana version: 8.9 Elasticsearch version: 8.9 APM Server version: get it installed from kibana elasticagent APM Agent languag…

---

## [Elastic APM PHP - tracking multiple domains on same server](https://discuss.elastic.co/t/elastic-apm-php-tracking-multiple-domains-on-same-server/338348)

<div class="topic-metadata">

**Author:** [@bram](https://discuss.elastic.co/u/bram)\
**Replies:** 0\
**Last updated:** [July 13, 2023, 3:49pm UTC](https://discuss.elastic.co/t/elastic-apm-php-tracking-multiple-domains-on-same-server/338348 "2023-07-13T15:49:53Z")

</div>

Kibana version: 8.8 Elasticsearch version: 8.8 APM Server version: 8.8 APM Agent language and version: PHP Agent v1.9 Original install method: deb Fresh install or upgraded from other version?: fresh Description of…

---

## [APM missing custom spans and incorrect name](https://discuss.elastic.co/t/apm-missing-custom-spans-and-incorrect-name/336325)

<div class="topic-metadata">

**Author:** [@Francis\_Lewis](https://discuss.elastic.co/u/Francis_Lewis)\
**Replies:** 2\
**Last updated:** [June 19, 2023, 7:25pm UTC](https://discuss.elastic.co/t/apm-missing-custom-spans-and-incorrect-name/336325 "2023-06-19T19:25:59Z")

</div>

Kibana version: 6.8.0 APM Server version: APM Agent language and version: PHP 1.8.3 Browser version: Google Chrome 114 Original install method (e.g. download page, yum, deb, from source, etc.) and version: Install fr…

---

## [Manually strip parameters on SQL queries](https://discuss.elastic.co/t/manually-strip-parameters-on-sql-queries/336202)

<div class="topic-metadata">

**Author:** [@bram](https://discuss.elastic.co/u/bram)\
**Replies:** 0\
**Last updated:** [June 16, 2023, 9:38am UTC](https://discuss.elastic.co/t/manually-strip-parameters-on-sql-queries/336202 "2023-06-16T09:38:34Z")

</div>

Kibana/Elasticsearch/APM Server version: 8.8.1 APM Agent language and version: PHP 1.8.4 Browser version: 113.0.1774.35 Original install method (e.g. download page, yum, deb, from source, etc.) and version: deb F…

---

## [Any plan on support PHP windows?](https://discuss.elastic.co/t/any-plan-on-support-php-windows/332512)

<div class="topic-metadata">

**Author:** [@mkf1](https://discuss.elastic.co/u/mkf1)\
**Replies:** 1\
**Last updated:** [May 22, 2023, 6:06am UTC](https://discuss.elastic.co/t/any-plan-on-support-php-windows/332512 "2023-05-22T06:06:26Z")

</div>

Hi, Is there any plan on adding support for windows for the APM-PHP agent?

---

## [Filitering APM data in one space, will overwrite APM data in other space](https://discuss.elastic.co/t/filitering-apm-data-in-one-space-will-overwrite-apm-data-in-other-space/332607)

<div class="topic-metadata">

**Author:** [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Replies:** 0\
**Last updated:** [May 5, 2023, 2:19am UTC](https://discuss.elastic.co/t/filitering-apm-data-in-one-space-will-overwrite-apm-data-in-other-space/332607 "2023-05-05T02:19:49Z")

</div>

I follow this guide to the APM data filitering Control access to APM data | Kibana Guide \[8.7\] | Elastic after creating filtered aliases (step1 in the doc.) and also applied the filiter alises to APM indices(setp 3), my…

[Next page](https://discuss.elastic.co/tag/php/48.md?match_all_tags=true&page=1&tags%5B%5D=php)
