Skip to content

Commit b98d458

Browse files
authored
PHP docs minor fixes (open-telemetry#6042)
1 parent 35bff74 commit b98d458

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

content/en/docs/languages/php/context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ like asynchronous or concurrent execution with `fibers`.
2525

2626
## Context keys
2727

28-
Values as stored in context as key-value pairs. Context keys are used to store
28+
Values are stored in context as key-value pairs. Context keys are used to store
2929
and retrieve values from context.
3030

3131
Keys can be created by calling `OpenTelemetry\Context\Context::createKey()`, for

content/en/docs/languages/php/instrumentation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ encouraged, attribute `service.version`, which holds the version of the service
262262
API or implementation.
263263

264264
Alternative methods exist for setting up resource attributes. For more
265-
information, see [Resources](/docs/languages/js/resources/).
265+
information, see [Resources](/docs/languages/php/resources/).
266266

267267
#### Global Providers
268268

content/en/docs/languages/php/sdk.md

-8
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,6 @@ $meter = OpenTelemetry\API\Globals::meterProvider()->getMeter('name', 'version',
9898

9999
SDK autoloading happens as part of the composer autoloader.
100100

101-
### Configuration from php.ini
102-
103-
When providing configuration through `php.ini`, be sure to protect boolean
104-
values by double-quoting them, eg `"true"`, `"false"` so that PHP doesn't
105-
convert them to numbers.
106-
107-
`php.ini`:
108-
109101
### Excluded URLs
110102

111103
You can disable SDK autoloading if the request URL matches a regular expression.

content/en/docs/zero-code/php.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Append the following to `php.ini`, or another `ini` file that will be processed
164164
by PHP:
165165

166166
```ini
167-
OTEL_PHP_AUTOLOAD_ENABLED=true
167+
OTEL_PHP_AUTOLOAD_ENABLED="true"
168168
OTEL_SERVICE_NAME=your-service-name
169169
OTEL_TRACES_EXPORTER=otlp
170170
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
@@ -208,7 +208,7 @@ trace the execution of that code.
208208
```php
209209
<?php
210210

211-
use OpenTelemetry\API\Common\Instrumentation\CachedInstrumentation;
211+
use OpenTelemetry\API\Instrumentation\CachedInstrumentation;
212212
use OpenTelemetry\API\Trace\Span;
213213
use OpenTelemetry\API\Trace\StatusCode;
214214
use OpenTelemetry\Context\Context;

0 commit comments

Comments
 (0)