Skip to content

Commit b76ce92

Browse files
authored
fix: update deprecated environment variable name
1 parent b499260 commit b76ce92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/en/docs/faas/lambda-collector.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Here is a sample configuration file of `collector.yaml` in the root directory:
9999

100100
```yaml
101101
#collector.yaml in the root directory
102-
#Set an environment variable 'OPENTELEMETRY_COLLECTOR_CONFIG_FILE' to '/var/task/collector.yaml'
102+
#Set an environment variable 'OPENTELEMETRY_COLLECTOR_CONFIG_URI' to '/var/task/collector.yaml'
103103
104104
receivers:
105105
otlp:
@@ -131,7 +131,7 @@ service:
131131
132132
Once your collector configuration is set through a confmap provider, create an
133133
environment variable on your Lambda function
134-
`OPENTELEMETRY_COLLECTOR_CONFIG_FILE` and set the path of configuration w.r.t to
134+
`OPENTELEMETRY_COLLECTOR_CONFIG_URI` and set the path of configuration w.r.t to
135135
the confmap provider as its value. for e.g, if you are using a file configmap
136136
provider, set its value to `/var/task/<path>/<to>/<filename>`. This will tell
137137
the extension where to find the collector configuration.
@@ -141,7 +141,7 @@ the extension where to find the collector configuration.
141141
You can set this via the Lambda console, or via the AWS CLI.
142142

143143
```bash
144-
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_FILE=/var/task/collector.yaml}
144+
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/collector.yaml}
145145
```
146146

147147
##### Set Configuration Environment Variables from CloudFormation
@@ -155,7 +155,7 @@ Function:
155155
...
156156
Environment:
157157
Variables:
158-
OPENTELEMETRY_COLLECTOR_CONFIG_FILE: /var/task/collector.yaml
158+
OPENTELEMETRY_COLLECTOR_CONFIG_URI: /var/task/collector.yaml
159159
```
160160

161161
##### Load Configuration from an S3 Object
@@ -170,5 +170,5 @@ Function:
170170
...
171171
Environment:
172172
Variables:
173-
OPENTELEMETRY_COLLECTOR_CONFIG_FILE: s3://<bucket_name>.s3.<region>.amazonaws.com/collector_config.yaml
173+
OPENTELEMETRY_COLLECTOR_CONFIG_URI: s3://<bucket_name>.s3.<region>.amazonaws.com/collector_config.yaml
174174
```

0 commit comments

Comments
 (0)