Skip to content

Commit

Permalink
sns scope (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
samrabelachew authored Mar 23, 2022
1 parent 8d6c504 commit 5de3318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/lyft/aws/sns/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func NewWriterWithStats(
scope tally.Scope,
) Writer {
return &writerWithStats{
scope: scope.SubScope("aws.sns"),
scope: scope,
Writer: &writer{
client: awsSns.New(session),
topicArn: aws.String(topicArn),
Expand Down
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
snsWriter = sns.NewWriterWithStats(
session,
userConfig.LyftAuditJobsSnsTopicArn,
statsScope,
statsScope.SubScope("aws.sns.jobs"),
)
} else {
snsWriter = sns.NewNoopWriter()
Expand Down Expand Up @@ -877,7 +877,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
)

ctx, cancel := context.WithCancel(context.Background())
gatewaySnsWriter := sns.NewWriterWithStats(session, userConfig.LyftGatewaySnsTopicArn, statsScope)
gatewaySnsWriter := sns.NewWriterWithStats(session, userConfig.LyftGatewaySnsTopicArn, statsScope.SubScope("aws.sns.gateway"))
autoplanValidator := &gateway.AutoplanValidator{
Logger: logger,
Scope: statsScope.SubScope("validator"),
Expand Down

0 comments on commit 5de3318

Please sign in to comment.