diff --git a/package/DEBIAN/control b/package/DEBIAN/control index 91617b5..22418d1 100644 --- a/package/DEBIAN/control +++ b/package/DEBIAN/control @@ -1,5 +1,5 @@ Package: gitaptly -Version: 2.9.2 +Version: 2.10.0 Architecture: all Depends: debconf, bash, jq, cron, gzip, dpkg-dev, wget, python3, python3-pip, python3-venv Suggests: opentelemetry-shell (>= 1.0.0) diff --git a/package/usr/bin/gitaptly_serve.sh b/package/usr/bin/gitaptly_serve.sh index 2ccd2eb..ca5a95d 100755 --- a/package/usr/bin/gitaptly_serve.sh +++ b/package/usr/bin/gitaptly_serve.sh @@ -21,6 +21,12 @@ if [ -n "$otel_root_span_id" ]; then otel_span_attribute $otel_root_span_id http.route=/$owner/$repo otel_span_attribute $otel_root_span_id github.repository.owner=$owner otel_span_attribute $otel_root_span_id github.repository.name=$repo + otel_span_attribute $otel_root_span_id github.repository.file=$file + otel_metric=$(otel_metric_create "gitaptly.downloads") + otel_metric_attribute $otel_metric github.repository.owner=$owner + otel_metric_attribute $otel_metric github.repository.repo=$repo + otel_metric_attribute $otel_metric github.repository.file=$file + otel_metric_add $otel_metric 1 fi echo "Content-Type: application/vnd.debian.binary-package"