Skip to content

Commit

Permalink
Fix message count
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Jan 25, 2024
1 parent 1ecf2d9 commit b5806f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## UNRELEASED

# 1.23.2 - 2024-01-22
- Fix: Send a `publish_error` metric for errors other than `DeliveryFailed`.

# 1.23.0 - 2024-01-09

- Fix: Fixed handler metric for status:received, status:success in batch consumption
Expand Down
2 changes: 1 addition & 1 deletion lib/deimos/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.send_produce_error(event)
else
Deimos.config.metrics&.increment(
'publish_error',
by: event.respond_to?(:[]) ? event[:message_count] : 1
by: event.payload[:message_count] || 1
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/deimos/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Deimos
VERSION = '1.23.0'
VERSION = '1.23.2'
end

0 comments on commit b5806f4

Please sign in to comment.