Skip to content

Commit 8510a22

Browse files
committed
copy more from adot-collector
1 parent 02de078 commit 8510a22

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

infrastructure/aws/cdk/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4317",
3939
"OTEL_METRICS_EXPORTER": "none",
4040
"OTEL_LOGS_EXPORTER": "none",
41-
"OPENTELEMETRY_COLLECTOR_CONFIG_FILE": "/opt/otel-config.yaml",
4241
"VSI_CACHE": "TRUE",
4342
"VSI_CACHE_SIZE": "5000000", # 5 MB (per file-handle)
4443
}

infrastructure/aws/lambda/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION} as bu
44

55
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
66
COPY --from=amazon/aws-otel-collector:v0.45.0 /awscollector /opt/extensions/
7+
COPY --from=amazon/aws-otel-collector:v0.45.0 /opt/aws/aws-otel-collector/ /opt/aws/aws-otel-collector/
78

89
WORKDIR /build
910

@@ -29,6 +30,5 @@ RUN cd /var/lang/lib/python3.12/site-packages && \
2930
find . -type f -name '*.so*' -not -path "./numpy.libs/*" -exec strip --strip-unneeded {} \;
3031

3132
COPY infrastructure/aws/lambda/handler.py ${LAMBDA_RUNTIME_DIR}/
32-
COPY infrastructure/aws/lambda/otel-config.yaml /opt/
3333

3434
CMD ["opentelemetry-instrument", "handler.handler"]

0 commit comments

Comments
 (0)