-
To incorporate the OpenTelemetry Lambda layer into your Java functions, include the following layers in your functions.
region - set your region
version - use version from latest Otel OTel Lambda release
amd64|arm64 - choose architecture
-
Setup collector using the below steps
-
Establish an environment variable named
OPENTELEMETRY_COLLECTOR_CONFIG_FILE=/var/task/atatus-collector.yamlwithin your Lambda function. This action instructs the extension on the location of the collector configuration. -
You can optionally set the tags
(env, service, and version - Optional)in the processors resource attributes. This helps with organizing all functions within a unified service, making filtering easier. -
Please create a configuration file named as
atatus-collector.yamlbelow: a. Placeatatus-collector.yamlin thesrc/main/resourcesdirectory.b. Configure the lambda function by setting the environment variables in the corresponding Serverless Environment.
-
Establish an environment variable named
atatus-collector.yaml file under the exporter otlphttp header.
4. Add resource configuration in pom.xml file