Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set sentry release with current version #89

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/getsentry/sentry-go"
"github.com/kubeshark/tracer/misc"
"github.com/kubeshark/tracer/pkg/kubernetes"
"github.com/kubeshark/tracer/pkg/version"
"github.com/kubeshark/tracer/server"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -66,6 +67,7 @@ func main() {
// of transactions for tracing.
// We recommend adjusting this value in production,
TracesSampleRate: 1.0,
Release: version.Ver,
}); err != nil {
log.Error().Err(err).Msg("Sentry initialization failed:")
} else {
Expand Down
8 changes: 8 additions & 0 deletions pkg/version/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package version

var (
Ver = "0.0.1"
Branch = "develop"
GitCommitHash = "" // this var is overridden using ldflags in makefile when building
BuildTimestamp = "" // this var is overridden using ldflags in makefile when building
)
Loading