Skip to content

Commit

Permalink
PHP docs minor fixes (#6042)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc authored Jan 23, 2025
1 parent 35bff74 commit b98d458
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/languages/php/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ like asynchronous or concurrent execution with `fibers`.

## Context keys

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

Keys can be created by calling `OpenTelemetry\Context\Context::createKey()`, for
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/languages/php/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ encouraged, attribute `service.version`, which holds the version of the service
API or implementation.

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

#### Global Providers

Expand Down
8 changes: 0 additions & 8 deletions content/en/docs/languages/php/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ $meter = OpenTelemetry\API\Globals::meterProvider()->getMeter('name', 'version',

SDK autoloading happens as part of the composer autoloader.

### Configuration from php.ini

When providing configuration through `php.ini`, be sure to protect boolean
values by double-quoting them, eg `"true"`, `"false"` so that PHP doesn't
convert them to numbers.

`php.ini`:

### Excluded URLs

You can disable SDK autoloading if the request URL matches a regular expression.
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/zero-code/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Append the following to `php.ini`, or another `ini` file that will be processed
by PHP:

```ini
OTEL_PHP_AUTOLOAD_ENABLED=true
OTEL_PHP_AUTOLOAD_ENABLED="true"
OTEL_SERVICE_NAME=your-service-name
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
Expand Down Expand Up @@ -208,7 +208,7 @@ trace the execution of that code.
```php
<?php

use OpenTelemetry\API\Common\Instrumentation\CachedInstrumentation;
use OpenTelemetry\API\Instrumentation\CachedInstrumentation;
use OpenTelemetry\API\Trace\Span;
use OpenTelemetry\API\Trace\StatusCode;
use OpenTelemetry\Context\Context;
Expand Down

0 comments on commit b98d458

Please sign in to comment.