Skip to content

Commit

Permalink
changed observability from legacy bash package to new shell package
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer committed Sep 24, 2023
1 parent 70b07b1 commit 216ddb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: gitaptly
Version: 2.6.0
Version: 2.7.0
Architecture: all
Depends: debconf, bash, jq, cron, gzip, dpkg-dev, wget, python3, python3-pip, python3-venv
Suggests: opentelemetry-bash (>= 0.7.0)
Suggests: opentelemetry-shell (>= 1.0.0)
Priority: extra
Maintainer: Philipp Lengauer <[email protected]>
Homepage: https://github.com/plengauer/GitAptly
Expand Down
4 changes: 2 additions & 2 deletions package/usr/bin/gitaptly_serve.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
set -e
source /opt/gitaptly/env
if [ -f /usr/bin/opentelemetry_bash.sh ]; then
if [ -f /usr/bin/opentelemetry_shell.sh ]; then
export OTEL_SERVICE_NAME=GitAptly
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="$OTLP_TRACES_ENDPOINT"
export OTEL_EXPORTER_OTLP_TRACES_HEADERS=authorization=$(echo "$OTLP_TRACES_HEADER" | jq -Rr @uri)
source /usr/bin/opentelemetry_bash.sh
source /usr/bin/opentelemetry_shell.sh
fi

path="$SCRIPT_NAME"
Expand Down
4 changes: 2 additions & 2 deletions package/usr/bin/gitaptly_update.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
set -e
source /opt/gitaptly/env
if [ -f /usr/bin/opentelemetry_bash.sh ]; then
if [ -f /usr/bin/opentelemetry_shell.sh ]; then
export OTEL_SERVICE_NAME=GitAptly
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="$OTLP_TRACES_ENDPOINT"
export OTEL_EXPORTER_OTLP_TRACES_HEADERS=authorization=$(echo "$OTLP_TRACES_HEADER" | jq -Rr @uri)
source /usr/bin/opentelemetry_bash.sh
source /usr/bin/opentelemetry_shell.sh
otel_instrument dpkg-scanpackages
fi
cd /var/lib/gitaptly
Expand Down

0 comments on commit 216ddb7

Please sign in to comment.