Skip to content

Commit

Permalink
chore(metrics): remove build time
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed May 5, 2023
1 parent 2e8d505 commit d06913b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cmd/celestia/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func persistentPreRunEnv(cmd *cobra.Command, nodeType node.Type, _ []string) err
}
ctx = cmdnode.WithNetwork(ctx, parsedNetwork)
ctx = cmdnode.WithNodeBuildInfo(ctx, &nodebuilder.BuildInfo{
BuildTime: buildTime,
LastCommit: lastCommit,
SemanticVersion: semanticVersion,
SystemVersion: systemVersion,
Expand Down
1 change: 0 additions & 1 deletion nodebuilder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ func (cfg *Config) Decode(r io.Reader) error {

// BuildInfo stores all necessary information for the current build.
type BuildInfo struct {
BuildTime string
LastCommit string
SemanticVersion string
SystemVersion string
Expand Down
1 change: 0 additions & 1 deletion nodebuilder/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ func initializeMetrics(
semconv.ServiceNameKey.String(fmt.Sprintf("Celestia-%s", nodeType.String())),
semconv.ServiceInstanceIDKey.String(peerID.String()),
// custom key-val pairs
attribute.String("service.buildTime", buildInfo.BuildTime),
attribute.String("service.lastCommit", buildInfo.LastCommit),
attribute.String("service.semanticVersion", buildInfo.SemanticVersion),
attribute.String("service.systemVersion", buildInfo.SystemVersion),
Expand Down

0 comments on commit d06913b

Please sign in to comment.