Skip to content

Commit

Permalink
Merge pull request #563 from overmindtech/cleaner-service-version
Browse files Browse the repository at this point in the history
Capture a cleaner service version
  • Loading branch information
dylanratcliffe authored Aug 6, 2024
2 parents 3c3170d + 92c095b commit 01ef21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.26.0"
)

//go:generate sh -c "echo -n $(git describe --tags --long --all) > commit.txt"
//go:generate sh -c "echo -n $(git describe --tags --exact-match 2>/dev/null || git rev-parse --short HEAD) > commit.txt"
//go:embed commit.txt
var ServiceVersion string

Expand Down

0 comments on commit 01ef21c

Please sign in to comment.