Skip to content

Commit

Permalink
customize aws lambda instrumentation to span kind always be SERVER
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzlei committed Oct 28, 2024
1 parent 7bf7202 commit b32ae4f
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lambda-layer/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ WORKDIR /workspace

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

RUN sed -i "/opentelemetry-instrumentation-aws-lambda/d" ./aws-opentelemetry-distro/pyproject.toml

RUN sed -i "/opentelemetry-instrumentation-system-metrics/d" ./aws-opentelemetry-distro/pyproject.toml

RUN mkdir -p /build && \
python3 -m pip install aws-opentelemetry-distro/ -t /build/python && \
cp -r opentelemetry /build/python && \
mv otel_wrapper.py /build/python && \
mv otel-instrument /build && \
python3 -m compileall /build/python && \
Expand Down
Loading

0 comments on commit b32ae4f

Please sign in to comment.