Skip to content

Commit

Permalink
fix: Add client name to sage events
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Dec 6, 2023
1 parent ad69f1b commit f9ac8f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions example_sage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ logging: "debug" # panic,fatal,warn,info,debug,trace
metricsAddr: ":9095"
pprofAddr: ":6065" # optional. if supplied it enables pprof server

name: example-instance

armiarmaUrl: http://localhost:9099/events

# workers is the number of workers to use for processing events.
Expand Down
2 changes: 2 additions & 0 deletions pkg/sage/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type Config struct {
PProfAddr *string `yaml:"pprofAddr"`
// MetricsAddr is the address to server prometheus metrics on.
MetricsAddr string `yaml:"metricsAddr" default:":9093"`
// Name is the name of the service.
Name string `yaml:"name" default:"xatu-sage"`
// Outputs configuration
Outputs []output.Config `yaml:"outputs"`
// ArmiarmaURL configuration
Expand Down
2 changes: 1 addition & 1 deletion pkg/sage/sage.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (a *Sage) createNewClientMeta(ctx context.Context) (*xatu.ClientMeta, error
}

return &xatu.ClientMeta{
Name: "sage",
Name: a.config.Name,
Version: xatu.Short(),
Id: a.id.String(),
Implementation: xatu.Implementation,
Expand Down

0 comments on commit f9ac8f8

Please sign in to comment.