Skip to content

Commit

Permalink
Add build information to OTEL binaries (#2237)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay authored May 11, 2020
1 parent 8a23c73 commit cd19b64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions cmd/opentelemetry-collector/cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/defaults"
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/processor/resourceprocessor"
jconfig "github.com/jaegertracing/jaeger/pkg/config"
"github.com/jaegertracing/jaeger/pkg/version"
"github.com/jaegertracing/jaeger/plugin/sampling/strategystore/static"
)

Expand All @@ -40,12 +41,12 @@ func main() {
}
}

ver := version.Get()
info := service.ApplicationStartInfo{
ExeName: "jaeger-opentelemetry-agent",
LongName: "Jaeger OpenTelemetry Agent",
// TODO
//Version: version.Version,
//GitHash: version.GitHash,
Version: ver.GitVersion,
GitHash: ver.GitCommit,
}

v := viper.New()
Expand Down
7 changes: 4 additions & 3 deletions cmd/opentelemetry-collector/cmd/collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/defaults"
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/processor/resourceprocessor"
jConfig "github.com/jaegertracing/jaeger/pkg/config"
"github.com/jaegertracing/jaeger/pkg/version"
"github.com/jaegertracing/jaeger/plugin/sampling/strategystore/static"
"github.com/jaegertracing/jaeger/plugin/storage"
)
Expand All @@ -43,12 +44,12 @@ func main() {
}
}

ver := version.Get()
info := service.ApplicationStartInfo{
ExeName: "jaeger-opentelemetry-collector",
LongName: "Jaeger OpenTelemetry Collector",
// TODO
//Version: version.Version,
//GitHash: version.GitHash,
Version: ver.GitVersion,
GitHash: ver.GitCommit,
}

v := viper.New()
Expand Down
7 changes: 4 additions & 3 deletions cmd/opentelemetry-collector/cmd/ingester/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app"
"github.com/jaegertracing/jaeger/cmd/opentelemetry-collector/app/defaults"
jconfig "github.com/jaegertracing/jaeger/pkg/config"
"github.com/jaegertracing/jaeger/pkg/version"
"github.com/jaegertracing/jaeger/plugin/storage"
)

Expand All @@ -40,12 +41,12 @@ func main() {
}
}

ver := version.Get()
info := service.ApplicationStartInfo{
ExeName: "jaeger-opentelemetry-ingester",
LongName: "Jaeger OpenTelemetry Ingester",
// TODO
//Version: version.Version,
//GitHash: version.GitHash,
Version: ver.GitVersion,
GitHash: ver.GitCommit,
}

v := viper.New()
Expand Down

0 comments on commit cd19b64

Please sign in to comment.