You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
:description: The OpenTelemetry PHP extensions automatically instruments PHP applications using a PHP extension and available instrumentation libraries. Follow these steps to get started.
9
9
10
10
The OpenTelemetry PHP extension automatically instruments PHP applications using a PHP extension and available instrumentation libraries. You can send telemetry to the Splunk Distribution of OpenTelemetry Collector or directly to the Splunk Observability Cloud ingest endpoint.
11
11
12
-
To get started, use the guided setup or follow the instructions manually.
12
+
To get started, use the guided setup or follow the instructions to install manually.
13
13
14
14
Generate customized instructions using the guided setup
To uninstall the SignalFx Tracing Library for PHP, run the following command:
36
+
1. To uninstall the SignalFx Tracing Library for PHP, run the following command:
37
37
38
38
.. code-block:: shell
39
39
40
40
php signalfx-setup.php --uninstall
41
41
42
-
Make sure that your .ini file doesn't contain references to ``signalfx-tracing.so`` and that the extension file has been removed. Optionally, you can delete the /opt/signalfx/signalfx-library directory.
42
+
2. Make sure that your INI file doesn't contain references to ``signalfx-tracing.so`` and that the extension file is removed.
43
+
44
+
3. Optionally, delete the /opt/signalfx/signalfx-library directory.
Copy file name to clipboardExpand all lines: gdi/get-data-in/application/php/sfx/configuration/advanced-php-configuration.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
.. caution::
2
2
3
-
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the date, the library will be archived and no longer maintained.
3
+
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support (EOS) on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the EOS date, the library will be archived and no longer maintained.
4
4
5
-
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar capabilities.
5
+
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar functionalities.
6
6
7
7
.. _advanced-php-configuration:
8
8
@@ -20,9 +20,9 @@ The following sections describe all available settings for configuring the Signa
The following settings are specific to the Splunk Distribution of OpenTelemetry Python:
23
+
Use the following settings to configure the SignalFx Tracing Library for PHP:
24
24
25
-
.. list-table::
25
+
.. list-table::
26
26
:header-rows: 1
27
27
28
28
* - Environment variable
@@ -46,7 +46,7 @@ The following settings are specific to the Splunk Distribution of OpenTelemetry
46
46
* - ``SIGNALFX_CAPTURE_REQUEST_HEADERS``
47
47
- Comma-separated list of incoming request headers to turn into spans. For example, ``User-Agent`` is captured as ``http.request.headers.user_agent``.
48
48
* - ``SIGNALFX_ACCESS_TOKEN``
49
-
- Splunk authentication token that lets the library send data directly to Splunk Observability Cloud. Unset by default. Not required unless you need to send data to the Splunk Observability Cloud ingest endpoint. See :ref:`export-directly-to-olly-cloud-php` for more information.
49
+
- Splunk Observability Cloud authentication token that lets the library send data directly to Splunk Observability Cloud. Unset by default. Not required unless you need to send data to the Splunk Observability Cloud ingest endpoint. See :ref:`export-directly-to-olly-cloud-php` for more information.
50
50
51
51
.. _tracing-cli-sessions:
52
52
@@ -61,7 +61,7 @@ To trace the CLI SAPI functionality, you have to activate it manually using the
61
61
php artisan migrate:fresh
62
62
php myTracedCliScript.php
63
63
64
-
.. caution:: This SAPI is deactivated by default to avoid undesired tracing of system activity.
64
+
This SAPI is deactivated by default to avoid undesired tracing of system activity.
65
65
66
66
.. _server-trace-information-php:
67
67
@@ -72,9 +72,9 @@ To connect Real User Monitoring (RUM) requests from mobile and web applications
The ``Server-Timing`` header contains the ``traceId`` and ``spanId`` parameters in ``traceparent`` format. For more information, see the Server-Timing and traceparent documentation on the W3C website.
78
+
The ``Server-Timing`` header contains the ``traceId`` and ``spanId`` parameters in ``traceparent`` format. For more information, see the ``Server-Timing`` and ``traceparent`` documentation on the W3C website.
79
79
80
80
.. note:: If you need to deactivate trace response headers, set ``SIGNALFX_TRACE_RESPONSE_HEADER_ENABLED`` to ``false`` or set the ``signalfx.trace.response_header_enabled`` option in your INI file to ``false``.
Copy file name to clipboardExpand all lines: gdi/get-data-in/application/php/sfx/instrumentation/instrument-php-application.rst
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
.. caution::
2
2
3
-
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the date, the library will be archived and no longer maintained.
3
+
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support (EOS) on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the EOS date, the library will be archived and no longer maintained.
4
4
5
-
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar capabilities.
5
+
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar functionalities.
You can deploy the PHP instrumentation in Docker, Kubernetes, or send data directly to Splunk Observability Cloud. See the following sections for more information.
120
+
You can deploy the PHP instrumentation in Docker or, Kubernetes, or you can send data directly to Splunk Observability Cloud. See the following sections for instructions for your environment:
121
+
122
+
* :ref:`docker_php`
123
+
* :ref:`kubernetes_php`
124
+
* :ref:`export-directly-to-olly-cloud-php`
121
125
122
126
.. _docker_php:
123
127
@@ -140,17 +144,17 @@ You can deploy the PHP instrumentation using Docker. Follow these steps to get s
#. Add a line to the script to start the application using ``supervisorctl``, ``supervisord``, ``systemd``, or similar. The following example uses ``supervisorctl``:
147
+
#. Add a line to the script to start the application using the ``supervisorctl``, ``supervisord``, ``systemd``, or a similar command. The following example uses ``supervisorctl``:
144
148
145
149
.. code-block:: shell
146
150
147
151
supervisor start my-php-app
148
152
149
153
#. Add a command to run the newly created shell script at the end of the Dockerfile.
150
154
151
-
#. Rebuild the container using ``docker build``.
155
+
#. Rebuild the container using the ``docker build`` command.
152
156
153
-
Next, configure the PHP instrumentation for Splunk Observability Cloud. See :ref:`advanced-php-configuration` for more information.
157
+
Next, configure the PHP instrumentation for Splunk Observability Cloud. See :ref:`advanced-php-configuration`.
154
158
155
159
.. caution:: Make sure to deactivate the ``Xdebug`` extension, as it's not compatible with the PHP instrumentation.
156
160
@@ -193,12 +197,12 @@ The following example shows how to update a deployment to expose environment var
193
197
- name: SIGNALFX_TRACE_GLOBAL_TAGS
194
198
value: "deployment.environment:<my_environment>"
195
199
196
-
Next, configure the PHP instrumentation for Splunk Observability Cloud. See :ref:`advanced-php-configuration` for more information.
200
+
Next, configure the PHP instrumentation for Splunk Observability Cloud. See :ref:`advanced-php-configuration`.
To obtain an access token, see :ref:`admin-api-access-tokens`.
220
226
221
227
To find your Splunk realm, see :ref:`Note about realms <about-realms>`.
222
228
223
229
Next, configure the PHP instrumentation for Splunk Observability Cloud. See :ref:`advanced-php-configuration` for more information.
224
230
225
231
.. note:: For more information on the ingest API endpoints, see :new-page:`Send APM traces <https://dev.splunk.com/observability/docs/apm/send_traces/>`.
Copy file name to clipboardExpand all lines: gdi/get-data-in/application/php/sfx/instrumentation/php-manual-instrumentation.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
.. caution::
2
2
3
-
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the date, the library will be archived and no longer maintained.
3
+
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support (EOS) on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the EOS date, the library will be archived and no longer maintained.
4
4
5
-
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar capabilities.
5
+
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar functionalities.
Copy file name to clipboardExpand all lines: gdi/get-data-in/application/php/sfx/php-requirements.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
.. caution::
2
2
3
-
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the date, the library will be archived and no longer maintained.
3
+
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support (EOS) on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the EOS date, the library will be archived and no longer maintained.
4
4
5
-
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar capabilities.
5
+
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar functionalities.
Copy file name to clipboardExpand all lines: gdi/get-data-in/application/php/sfx/sfx-instrumentation.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
.. caution::
2
2
3
-
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the date, the library will be archived and no longer maintained.
3
+
The SignalFx Tracing Library for PHP is deprecated as of February 21, 2024 and will reach End of Support (EOS) on February 21 2025. Until then, only critical security fixes and bug fixes will be provided. After the EOS date, the library will be archived and no longer maintained.
4
4
5
-
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar capabilities.
5
+
If you want to instrument new or existing PHP applications, use :ref:`OpenTelemetry PHP instrumentation <get-started-php>`, which offers similar functionalities.
0 commit comments