Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit d7e33b8

Browse files
committed
Apply PHP docs edits
1 parent f6f71f3 commit d7e33b8

File tree

9 files changed

+54
-51
lines changed

9 files changed

+54
-51
lines changed

gdi/get-data-in/application/php/instrument-php-application.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.. _instrument-php-otel-applications:
22

33
*******************************************************************************
4-
Instrument your PHP application for Splunk Observability Cloud (OpenTelemetry)
4+
Instrument your PHP application for Splunk Observability Cloud
55
*******************************************************************************
66

77
.. meta::
88
:description: The OpenTelemetry PHP extensions automatically instruments PHP applications using a PHP extension and available instrumentation libraries. Follow these steps to get started.
99

1010
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.
1111

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.
1313

1414
Generate customized instructions using the guided setup
1515
====================================================================
@@ -30,11 +30,11 @@ To generate all the basic installation commands for your environment and applica
3030
Install the Splunk Distribution of OpenTelemetry PHP manually
3131
==================================================================
3232

33-
Follow these steps to install and automatically instrument your PHP application:
33+
If you don't use the guided setup, follow these steps to manually install and automatically instrument your PHP application:
3434

3535
1. Check that you meet the requirements. See :ref:`php-otel-requirements`.
3636

37-
2. Install the OpenTelemetry PHP extension using PECL:
37+
2. Install the OpenTelemetry PHP extension using PECL in the command line:
3838

3939
.. code-block:: bash
4040

gdi/get-data-in/application/php/php-manual-instrumentation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ The OpenTelemetry instrumentation for PHP provides a base you can build on by ad
1111

1212
.. _custom-traces-otel-php:
1313

14-
Create custom traces
14+
Create custom spans and traces
1515
===============================
1616

1717
To create custom spans and traces, follow these steps:
1818

19-
1. Create a ``TracerProvider`` if you aren't using an instrumentation library:
19+
1. Create a ``TracerProvider`` entry point if you aren't using an instrumentation library:
2020

2121
.. code-block:: php
2222
@@ -50,7 +50,7 @@ To create custom spans and traces, follow these steps:
5050
return $result;
5151
}
5252
53-
4. Optionally, set attributes:
53+
4. Optionally, set attributes to enrich your spans's metadata:
5454

5555
.. code:: php
5656
@@ -75,7 +75,7 @@ To create custom metrics, follow these steps:
7575
7676
require 'vendor/autoload.php';
7777
78-
2. Create a ``MeterProvider``:
78+
2. Create a ``MeterProvider`` entry point:
7979

8080
.. code:: php
8181

gdi/get-data-in/application/php/php-migration-guide.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ To migrate from the SignalFx Tracing Library for PHP to the OpenTelemetry instru
3333
Uninstall the SignalFx Tracing Library for PHP
3434
---------------------------------------------------
3535

36-
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:
3737

3838
.. code-block:: shell
3939
4040
php signalfx-setup.php --uninstall
4141
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.
4345

4446
.. _changes-functionality-php-otel:
4547

gdi/get-data-in/application/php/php-otel-requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To send application traces and spans to Splunk Observability Cloud, install the
2525
Supported libraries and frameworks
2626
=================================================
2727

28-
The SignalFx Tracing Library for PHP instruments the following libraries and frameworks:
28+
The OpenTelemetry instrumentation supports the following libraries:
2929

3030
.. list-table::
3131
:widths: 60 40

gdi/get-data-in/application/php/sfx/configuration/advanced-php-configuration.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. caution::
22

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.
44

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.
66

77
.. _advanced-php-configuration:
88

@@ -20,9 +20,9 @@ The following sections describe all available settings for configuring the Signa
2020
General settings
2121
=========================================================================
2222

23-
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:
2424

25-
.. list-table::
25+
.. list-table::
2626
:header-rows: 1
2727

2828
* - Environment variable
@@ -46,7 +46,7 @@ The following settings are specific to the Splunk Distribution of OpenTelemetry
4646
* - ``SIGNALFX_CAPTURE_REQUEST_HEADERS``
4747
- Comma-separated list of incoming request headers to turn into spans. For example, ``User-Agent`` is captured as ``http.request.headers.user_agent``.
4848
* - ``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.
5050

5151
.. _tracing-cli-sessions:
5252

@@ -61,7 +61,7 @@ To trace the CLI SAPI functionality, you have to activate it manually using the
6161
php artisan migrate:fresh
6262
php myTracedCliScript.php
6363
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.
6565

6666
.. _server-trace-information-php:
6767

@@ -72,9 +72,9 @@ To connect Real User Monitoring (RUM) requests from mobile and web applications
7272

7373
.. code-block::
7474
75-
Access-Control-Expose-Headers: Server-Timing
75+
Access-Control-Expose-Headers: Server-Timing
7676
Server-Timing: traceparent;desc="00-<serverTraceId>-<serverSpanId>-01"
7777
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.
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.
7979

8080
.. 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``.

gdi/get-data-in/application/php/sfx/instrumentation/instrument-php-application.rst

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.. caution::
22

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.
44

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.
66

77
.. _instrument-php-applications:
88

99
***************************************************************************
10-
Instrument your PHP application for Splunk Observability Cloud
10+
Instrument your PHP application for Splunk Observability Cloud (deprecated)
1111
***************************************************************************
1212

1313
.. meta::
@@ -38,7 +38,7 @@ To generate all the basic installation commands for your environment and applica
3838
Install the SignalFx Tracing Library for PHP manually
3939
==================================================================
4040

41-
Follow these instructions to install the SignalFx Tracing Library for PHP:
41+
If you don't use the guided setup, follow these instructions to manually install the SignalFx Tracing Library for PHP:
4242

4343
#. :ref:`install-php-instrumentation`
4444
#. :ref:`deploy-php`
@@ -54,7 +54,7 @@ Follow these steps to automatically instrument your application:
5454
#. Check that you meet the requirements. See :ref:`php-requirements`.
5555

5656
#. Download the installation script from the following location:
57-
57+
5858
.. code-block:: shell
5959
6060
curl -LO https://github.com/signalfx/signalfx-php-tracing/releases/latest/download/signalfx-setup.php
@@ -89,7 +89,7 @@ Follow these steps to automatically instrument your application:
8989
export SIGNALFX_ENDPOINT_URL='http://localhost:9080/v1/trace'
9090
export SIGNALFX_TRACE_GLOBAL_TAGS="deployment.environment:<my_environment>"
9191
92-
.. caution:: Set environment variables globally or using the start script of your PHP application.
92+
Set environment variables globally or using the start script of your PHP application.
9393

9494
#. Restart your server.
9595

@@ -109,15 +109,19 @@ You can use the ``signalfx-setup.php`` script to set INI file options without ha
109109
.. code-block:: shell
110110
111111
php signalfx-setup.php --update-config --signalfx.endpoint_url=http://172.17.0.1:9080/v1/trace
112-
112+
113113
This is useful for options common to all PHP services running in the system, like endpoints.
114114

115115
.. _deploy-php:
116116

117117
Deploy the PHP instrumentation in your environment
118118
=====================================================
119119

120-
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`
121125

122126
.. _docker_php:
123127

@@ -140,17 +144,17 @@ You can deploy the PHP instrumentation using Docker. Follow these steps to get s
140144
php signalfx-setup.php --update-config --signalfx.access_token=<access_token>
141145
php signalfx-setup.php --update-config --signalfx.service_name=<service-name>
142146
143-
#. 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``:
144148

145149
.. code-block:: shell
146150
147151
supervisor start my-php-app
148152
149153
#. Add a command to run the newly created shell script at the end of the Dockerfile.
150154

151-
#. Rebuild the container using ``docker build``.
155+
#. Rebuild the container using the ``docker build`` command.
152156

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`.
154158

155159
.. caution:: Make sure to deactivate the ``Xdebug`` extension, as it's not compatible with the PHP instrumentation.
156160

@@ -193,12 +197,12 @@ The following example shows how to update a deployment to expose environment var
193197
- name: SIGNALFX_TRACE_GLOBAL_TAGS
194198
value: "deployment.environment:<my_environment>"
195199
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`.
197201

198202
.. _export-directly-to-olly-cloud-php:
199203

200204
Send data directly to Splunk Observability Cloud
201-
=====================================================
205+
-----------------------------------------------------
202206

203207
By default, all telemetry is sent to the local instance of the Splunk Distribution of OpenTelemetry Collector.
204208

@@ -216,15 +220,12 @@ To bypass the OTel Collector and send data directly to Splunk Observability Clou
216220
export SIGNALFX_ACCESS_TOKEN=<access_token>
217221
export SIGNALFX_ENDPOINT_URL=https://ingest.<realm>.signalfx.com/v2/trace/signalfxv1
218222

223+
.. include:: /_includes/gdi/apm-api-define-host.rst
224+
219225
To obtain an access token, see :ref:`admin-api-access-tokens`.
220226

221227
To find your Splunk realm, see :ref:`Note about realms <about-realms>`.
222228

223229
Next, configure the PHP instrumentation for Splunk Observability Cloud. See :ref:`advanced-php-configuration` for more information.
224230

225231
.. note:: For more information on the ingest API endpoints, see :new-page:`Send APM traces <https://dev.splunk.com/observability/docs/apm/send_traces/>`.
226-
227-
Specify the source host
228-
-----------------------------------------------
229-
230-
.. include:: /_includes/gdi/apm-api-define-host.rst

gdi/get-data-in/application/php/sfx/instrumentation/php-manual-instrumentation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. caution::
22

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.
44

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.
66

77
.. _php-manual-instrumentation:
88

gdi/get-data-in/application/php/sfx/php-requirements.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
.. caution::
22

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.
44

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.
66

77
.. _php-requirements:
88

9-
*************************************************************
10-
PHP instrumentation compatibility and requirements
11-
*************************************************************
9+
***************************************************************
10+
PHP instrumentation compatibility and requirements (deprecated)
11+
***************************************************************
1212

1313
.. meta::
1414
:description: This is what you need to instrument PHP applications for Splunk Observability Cloud.
1515

1616
The SignalFx Tracing Library for PHP supports PHP version 7.0 or higher running on the Zend engine.
1717

18-
Supported web servers are:
18+
PHP instrumentation is supported for these web servers:
1919

2020
- Apache
2121
- php-fpm
@@ -30,7 +30,7 @@ Supported libraries and frameworks
3030

3131
The SignalFx Tracing Library for PHP instruments the following libraries and frameworks:
3232

33-
.. list-table::
33+
.. list-table::
3434
:widths: 60 40
3535
:width: 100%
3636
:header-rows: 1
@@ -40,7 +40,7 @@ The SignalFx Tracing Library for PHP instruments the following libraries and fra
4040
* - CakePHP
4141
- 2.x
4242
* - CodeIgniter
43-
- 2.2 and higher
43+
- 2.2 and higher
4444
* - Curl
4545
- All supported PHP versions
4646
* - Drupal
@@ -72,7 +72,7 @@ The SignalFx Tracing Library for PHP instruments the following libraries and fra
7272
* - Symfony
7373
- 3.3, 3.4, 4.x, 5.x
7474
* - Wordpress
75-
- 4.8, 5.5 and higher
75+
- 4.8 or 5.5 and higher
7676
* - Yii
7777
- 2.0
7878
* - Zend

gdi/get-data-in/application/php/sfx/sfx-instrumentation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.. caution::
22

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.
44

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.
66

77
.. _sfx-php-deprecated:
88

99
***********************************************************
10-
SignalFx Tracing Library for PHP (Deprecated)
10+
SignalFx Tracing Library for PHP (deprecated)
1111
***********************************************************
1212

1313
.. meta::

0 commit comments

Comments
 (0)