Skip to content

Commit

Permalink
set http route
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer committed Sep 28, 2023
1 parent 216ddb7 commit e2f6a5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: gitaptly
Version: 2.7.0
Version: 2.8.0
Architecture: all
Depends: debconf, bash, jq, cron, gzip, dpkg-dev, wget, python3, python3-pip, python3-venv
Suggests: opentelemetry-shell (>= 1.0.0)
Expand Down
4 changes: 4 additions & 0 deletions package/usr/bin/gitaptly_serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ file=$(echo "$path" | rev | cut -d/ -f1 | rev)
repo=$(echo "$path" | rev | cut -d/ -f2 | rev)
owner=$(echo "$path" | rev | cut -d/ -f3 | rev)

if [ -n "$root_span_id" ]; then
otel_span_attribute $root_span_id "http.route="/$owner/$repo
fi

echo "Content-Type: application/vnd.debian.binary-package"
echo ""
wget -O - $(bash /usr/bin/gitaptly_scan.sh $owner $repo | (grep "$file"'$' || true) | head --lines=1)

0 comments on commit e2f6a5b

Please sign in to comment.