Skip to content

Commit 3958805

Browse files
committed
Update Environment variable usage to OPENTELEMETRY_COLLECTOR_CONFIG_URI
1 parent 1dd6623 commit 3958805

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/docs/getting-started/lambda.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ Please find the list of available components supported for custom configuration
4242
The ADOT Lambda Layers supports the following types of confmap providers: file, env, yaml, http, https and s3. To customize the ADOT collector configuration using different Confmap providers, Please refer to [Confmap providers](/docs/components/confmap-providers#confmap-providers-supported-by-the-adot-collector) section for more information.
4343

4444
Once your collector configuration is set through a `confmap` providers.
45-
Create an environment variable on your Lambda function `OPENTELEMETRY_COLLECTOR_CONFIG_FILE` and set the path of configuration w.r.t to the confmap provider as its value. for e.g, if you are using a file configmap provider, set its value to `/var/task/*<path/<to>/<filename>*`.
45+
Create an environment variable on your Lambda function `OPENTELEMETRY_COLLECTOR_CONFIG_URI` and set the path of configuration w.r.t to the confmap provider as its value. for e.g, if you are using a file configmap provider, set its value to `/var/task/*<path/<to>/<filename>*`.
4646
This will tell the extension where to find the collector configuration.
4747

4848
Here is a sample configuration file of collector.yaml in the root directory:
4949

5050
```yaml
5151
#collector.yaml in the root directory
52-
#Set an environment variable 'OPENTELEMETRY_COLLECTOR_CONFIG_FILE' to '/var/task/collector.yaml'
52+
#Set an environment variable 'OPENTELEMETRY_COLLECTOR_CONFIG_URI' to '/var/task/collector.yaml'
5353

5454
receivers:
5555
otlp:
@@ -79,7 +79,7 @@ service:
7979
You can set this via the Lambda console, or via the AWS CLI.
8080

8181
```
82-
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_FILE=/var/task/collector.yaml}
82+
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/collector.yaml}
8383
```
8484

8585
You can configure environment variables via **CloudFormation** template as well:
@@ -91,7 +91,7 @@ Function:
9191
...
9292
Environment:
9393
Variables:
94-
OPENTELEMETRY_COLLECTOR_CONFIG_FILE: /var/task/collector.yaml
94+
OPENTELEMETRY_COLLECTOR_CONFIG_URI: /var/task/collector.yaml
9595
```
9696
Also, to load configuration from an S3 object
9797
@@ -102,7 +102,7 @@ Also, to load configuration from an S3 object
102102
...
103103
Environment:
104104
Variables:
105-
OPENTELEMETRY_COLLECTOR_CONFIG_FILE: s3://<bucket_name>.s3.<region>.amazonaws.com/collector_config.yaml
105+
OPENTELEMETRY_COLLECTOR_CONFIG_URI: s3://<bucket_name>.s3.<region>.amazonaws.com/collector_config.yaml
106106
```
107107
108108
Loading configuration from S3 will require that the IAM role attached to your function includes read access to the relevant bucket.

0 commit comments

Comments
 (0)