Skip to content

Lambda Layer Update - OTel Python 1.7.1 & 0.26b1 #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/pr-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
AWS_REGION: us-east-1
CORE_REPO_SHA: e65baa4680cd9dafc026ca5ed760e6d2c2232c96
CORE_REPO_SHA: 281c97bf8f9e31392859e006e13c9c8eac8967c3

jobs:
PR-Python:
Expand All @@ -20,20 +20,18 @@ jobs:
python: [3.8]

steps:
- uses: actions/checkout@v2

- name: Checkout this repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Tox
- name: Install tox testing package
working-directory: python/src
run: |
pip install tox
tox

- name: build layer
- name: Build layer
working-directory: python/src
run: ./run.sh -b

2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenTelemetry Lambda Python

Layers for running Python applications on AWS Lambda with OpenTelemetry.
Scripts and files used to build AWS Lambda Layers for running OpenTelemetry on AWS Lambda for Python.

### Sample App

Expand Down
29 changes: 0 additions & 29 deletions python/src/function/lambda_function.py

This file was deleted.

1 change: 0 additions & 1 deletion python/src/function/requirements.txt

This file was deleted.

6 changes: 4 additions & 2 deletions python/src/otel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ WORKDIR /workspace
RUN mkdir -p /build && \
python3 -m pip install -r otel_sdk/requirements.txt -t /build/python && \
python3 -m pip install -r otel_sdk/requirements-nodeps.txt -t /build/tmp --no-deps && \
# We need to use a `/build/tmp/` folder otherwise the instrumentation packages
# do not get fully downloaded to the `opentelemetry/instrumentation/` path.
cp -r /build/tmp/* /build/python/ && \
rm -rf /build/tmp && \
cp -r otel_sdk/* /build/python && \
mv /build/python/otel-instrument /build/otel-instrument && \
mv otel_sdk/otel_wrapper.py /build/python && \
mv otel_sdk/otel-instrument /build && \
chmod 755 /build/otel-instrument && \
rm -rf /build/python/boto* && \
rm -rf /build/python/urllib3* && \
Expand Down

This file was deleted.

This file was deleted.

Loading