Skip to content

Commit b32ae4f

Browse files
committed
customize aws lambda instrumentation to span kind always be SERVER
1 parent 7bf7202 commit b32ae4f

File tree

4 files changed

+490
-0
lines changed

4 files changed

+490
-0
lines changed

lambda-layer/src/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ WORKDIR /workspace
66

77
RUN sed -i "/opentelemetry-exporter-otlp-proto-grpc/d" ./aws-opentelemetry-distro/pyproject.toml
88

9+
RUN sed -i "/opentelemetry-instrumentation-aws-lambda/d" ./aws-opentelemetry-distro/pyproject.toml
10+
911
RUN sed -i "/opentelemetry-instrumentation-system-metrics/d" ./aws-opentelemetry-distro/pyproject.toml
1012

1113
RUN mkdir -p /build && \
1214
python3 -m pip install aws-opentelemetry-distro/ -t /build/python && \
15+
cp -r opentelemetry /build/python && \
1316
mv otel_wrapper.py /build/python && \
1417
mv otel-instrument /build && \
1518
python3 -m compileall /build/python && \

0 commit comments

Comments
 (0)