Skip to content

Commit

Permalink
init otel bash
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer committed Sep 16, 2023
1 parent 7658cb3 commit 648d7e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Package: gitaptly
Version: 2.4.0
Version: 2.4.1
Architecture: all
Depends: debconf, bash, opentelemetry-bash, jq, cron, gzip, dpkg-dev, wget, python3, python3-pip, python3-venv
Priority: extra
Maintainer: Philipp Lengauer <[email protected]>
Homepage: https://github.com/plengauer/GitAptly
Description: A apt-repo-like facade for GitHub releases

4 changes: 4 additions & 0 deletions package/usr/bin/gitaptly_serve.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
set -e
source /opt/gitaptly/env
export OTEL_SERVICE_NAME=GitAptly
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="$OTLP_TRACES_ENDPOINT"
export OTEL_EXPORTER_OTLP_TRACES_HEADERS="$OTLP_TRACES_HEADERS"
source /usr/bin/opentelemetry_bash.sh

path="$SCRIPT_NAME"
Expand Down
4 changes: 4 additions & 0 deletions package/usr/bin/gitaptly_update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
set -e
source /opt/gitaptly/env
export OTEL_SERVICE_NAME=GitAptly
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="$OTLP_TRACES_ENDPOINT"
export OTEL_EXPORTER_OTLP_TRACES_HEADERS="$OTLP_TRACES_HEADERS"
source /usr/bin/opentelemetry_bash.sh
cd /var/lib/gitaptly

Expand Down

0 comments on commit 648d7e6

Please sign in to comment.