@@ -99,7 +99,7 @@ Here is a sample configuration file of `collector.yaml` in the root directory:
99
99
100
100
` ` ` yaml
101
101
#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'
103
103
104
104
receivers:
105
105
otlp:
@@ -131,7 +131,7 @@ service:
131
131
132
132
Once your collector configuration is set through a confmap provider, create an
133
133
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
135
135
the confmap provider as its value. for e.g, if you are using a file configmap
136
136
provider, set its value to `/var/task/<path>/<to>/<filename>`. This will tell
137
137
the extension where to find the collector configuration.
@@ -141,7 +141,7 @@ the extension where to find the collector configuration.
141
141
You can set this via the Lambda console, or via the AWS CLI.
142
142
143
143
` ` ` 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}
145
145
` ` `
146
146
147
147
# #### Set Configuration Environment Variables from CloudFormation
@@ -155,7 +155,7 @@ Function:
155
155
...
156
156
Environment:
157
157
Variables:
158
- OPENTELEMETRY_COLLECTOR_CONFIG_FILE : /var/task/collector.yaml
158
+ OPENTELEMETRY_COLLECTOR_CONFIG_URI : /var/task/collector.yaml
159
159
` ` `
160
160
161
161
# #### Load Configuration from an S3 Object
@@ -170,5 +170,5 @@ Function:
170
170
...
171
171
Environment:
172
172
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
174
174
` ` `
0 commit comments