-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
33 lines (29 loc) · 846 Bytes
/
serverless.yml
File metadata and controls
33 lines (29 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
service: serverless-lambda-container-otel-layer
frameworkVersion: '3'
provider:
name: aws
region: us-east-2
architecture: arm64 # this needs to match the otel Lambda Layer architecture
tracing:
lambda: true
ecr:
images:
example-image:
path: ./
functions:
api:
image:
name: example-image
timeout: 10
environment:
# let otel Lambda Layer where the config file is located at
OPENTELEMETRY_COLLECTOR_CONFIG_FILE: "/var/task/collector.yaml"
AWS_LAMBDA_EXEC_WRAPPER: "/opt/otel-handler"
OTEL_SERVICE_NAME: "serverless-lambda-container-otel-layer-example"
OTEL_RESOURCE_ATTRIBUTES: "deployment.environment=staging"
# optional otel collector Lambda Layer config:
OTEL_LOG_LEVEL: "DEBUG"
events:
- httpApi:
path: /
method: get