Skip to content

Commit

Permalink
fix: correct the prometheus metric usage
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 6, 2024
1 parent 5b4a7b0 commit a4312c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/client/jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ func (client *Client) corePublish(subject string) {
"type": successfulPublish,
"cluster": clusterName,
"subject": subject,
"region": client.config.Region,
}).Add(1)
}

Expand Down Expand Up @@ -354,6 +355,7 @@ func (client *Client) jetstreamPublish(ctx context.Context, subject string, stre
"type": successfulPublish,
"stream": streamName,
"cluster": clusterName,
"region": client.config.Region,
}).Add(1)
client.logger.Info("receive ack", zap.String("stream", ack.Stream))
}
Expand Down

0 comments on commit a4312c3

Please sign in to comment.