Skip to content

Commit b664a40

Browse files
ocelotlAlex Boten
andauthored
update python build to use src instead of sample-apps (aws-observability#730)
Remove the collector as part of the build as well. --------- Signed-off-by: Alex Boten <[email protected]> Co-authored-by: Alex Boten <[email protected]>
1 parent 7203851 commit b664a40

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/release-layer-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Build
2626
run: |
27-
cd python/sample-apps
27+
cd python/src
2828
PYTHON_SDK_VERSION=$(./run.sh -n opentelemetry-python-layer -b true 2>&1 > /dev/null | sed -n "s/opentelemetry-sdk==\(.*\)/\1/p")
2929
shell: bash
3030

utils/sam/run.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ main() {
3333
stack=${OTEL_LAMBDA_STACK-"otel-stack"}
3434
layerName=${OTEL_LAMBDA_LAYER-"otel-layer"}
3535

36-
37-
collectorPath=${COLLECTOR_PATH-"../../collector"}
38-
3936
while getopts "hbdlr:t:s:n:" opt; do
4037
case "${opt}" in
4138
h)
@@ -89,14 +86,6 @@ main() {
8986
if [[ $build == true ]]; then
9087
echo "sam building..."
9188

92-
echo "run.sh: building the collector..."
93-
pushd "$collectorPath"
94-
make package
95-
rm -f build/collector-extension-amd64.zip
96-
popd
97-
rm -rf otel/collector_build/
98-
cp -r "$collectorPath"/build/ otel/collector_build/
99-
10089
echo "run.sh: Starting sam build."
10190
sam build -u -t "$template"
10291
zip -qr "$layerName".zip .aws-sam/build

0 commit comments

Comments
 (0)