You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/getting-started/lambda.mdx
+5-5
Original file line number
Diff line number
Diff line change
@@ -42,14 +42,14 @@ Please find the list of available components supported for custom configuration
42
42
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.
43
43
44
44
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>*`.
46
46
This will tell the extension where to find the collector configuration.
47
47
48
48
Here is a sample configuration file of collector.yaml in the root directory:
49
49
50
50
```yaml
51
51
#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'
53
53
54
54
receivers:
55
55
otlp:
@@ -79,7 +79,7 @@ service:
79
79
You can set this via the Lambda console, or via the AWS CLI.
80
80
81
81
```
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}
83
83
```
84
84
85
85
You can configure environment variables via **CloudFormation** template as well:
0 commit comments