Skip to content

Commit da51d8e

Browse files
codebotenotelbot[bot]tiffany76jaydeluca
authored
update the examples to use the new OTEL_CONFIG_FILE variable (#9340)
Signed-off-by: alex boten <223565+codeboten@users.noreply.github.com> Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com> Co-authored-by: Tiffany Hrabusa <30397949+tiffany76@users.noreply.github.com> Co-authored-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent 9825a72 commit da51d8e

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ PHP supports OpenTelemetry's experimental
108108
[Declarative Configuration](/docs/specs/otel/configuration/#declarative-configuration),
109109
where the SDK can be configured through a YAML file.
110110

111-
To enable this, set `OTEL_EXPERIMENTAL_CONFIG_FILE=/path/to/config.yaml` where
112-
`config.yaml` is a file which conforms to the declarative configuration schema,
113-
for example:
111+
To enable this, set `OTEL_CONFIG_FILE=/path/to/config.yaml` where `config.yaml`
112+
is a file which conforms to the declarative configuration schema, for example:
114113

115114
`config.yaml`:
116115

@@ -132,13 +131,13 @@ resource:
132131
133132
```shell
134133
OTEL_PHP_AUTOLOAD_ENABLED=true \
135-
OTEL_EXPERIMENTAL_CONFIG_FILE=/path/to/config.yaml
134+
OTEL_CONFIG_FILE=/path/to/config.yaml
136135
php example.php
137136
```
138137

139-
The existence of `OTEL_EXPERIMENTAL_CONFIG_FILE` will cause the autoloader to
140-
attempt to configure with the provided config file, and other environment
141-
variables will be ignored.
138+
The existence of `OTEL_CONFIG_FILE` will cause the autoloader to attempt to
139+
configure with the provided config file, and other environment variables will be
140+
ignored.
142141

143142
### Excluded URLs
144143

content/en/docs/languages/sdk-configuration/declarative-configuration.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ This approach is useful when:
1414

1515
> [!WARNING]
1616
>
17-
> Declarative configuration is experimental.
17+
> The declarative configuration schema is stable. The parts of it that are still
18+
> experimental are suffixed with `/development`. Support for declarative
19+
> configuration in various implementations is still experimental.
1820
1921
## Supported languages
2022

@@ -28,13 +30,12 @@ For details, refer to the
2830
## Getting started
2931

3032
1. Save the following configuration file as `otel-config.yaml`.
31-
2. Set the environment variable
32-
`OTEL_EXPERIMENTAL_CONFIG_FILE=/path/to/otel-config.yaml`
33+
2. Set the environment variable `OTEL_CONFIG_FILE=/path/to/otel-config.yaml`
3334

3435
Recommended configuration file:
3536

3637
```yaml
37-
file_format: '1.0-rc.1'
38+
file_format: '1.0'
3839

3940
resource:
4041
attributes_list: ${OTEL_RESOURCE_ATTRIBUTES}

content/en/docs/zero-code/java/agent/declarative-configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ configuration, including the OpenTelemetry Java agent.
2020

2121
> [!WARNING]
2222
>
23-
> Declarative configuration is experimental.
23+
> The declarative configuration schema is stable. The parts of it that are still
24+
> experimental are suffixed with `/development`. Java agent support for
25+
> declarative configuration is still experimental.
2426
2527
## Supported versions
2628

0 commit comments

Comments
 (0)