deimos-ruby 1.23.1.pre.beta6 → 1.23.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea07999ebe98551b3c7385d81762e9ece4515cfb48391eff869cb866762168a0
4
- data.tar.gz: c36e82b2c8ade6b661d4626904495742dfe2f79b31d7f9bd1c544b9da7808f4c
3
+ metadata.gz: b0c3a1e7084ccdf781b9a826de555c98661f564c3ecaaf8daf80427d59f91c6e
4
+ data.tar.gz: 995449f489eb5bc76e870e2666c53a48866d54202b98d508c278f393c604d412
5
5
  SHA512:
6
- metadata.gz: 5f4776b1a3e8bc229e1c772d0cba605f25614d8ef2eb633bd8a726e0e8717ec35dcabd84e6079dde466dfe01267a1107d6ee5ed401b6cb60b05424486e3cb18c
7
- data.tar.gz: d525504e4e188f13713fac265df69d011f64f4b4cbd1f01bf8508c047632b2b010cc5277ee928fbc5daed1e01849adf5fe3000166bbefabb730e7db8a3b80b2c
6
+ metadata.gz: a203d1c8d44f90f512ea4a4c3fa03d524a6fde8afad3e1683a5a1c7c544e21e159bdd61cde92f0a256465b06bdb30ae6472ae415afe0d988afa9a8eb217bd1b8
7
+ data.tar.gz: c510ed78c61d2ed42de36ba631d69070f9d9a9406cedb15bb7c0182cb984c0a13c25887b633467c819432809bf1aa73b48e3ce81589f1b9f82d6519588e1c043
data/CHANGELOG.md CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 1.23.2 - 2024-01-22
11
+ - Fix: Send a `publish_error` metric for errors other than `DeliveryFailed`.
12
+
10
13
  # 1.23.0 - 2024-01-09
11
14
 
12
15
  - Fix: Fixed handler metric for status:received, status:success in batch consumption
@@ -49,7 +49,6 @@ module Deimos
49
49
  # @return [void]
50
50
  def self.send_produce_error(event)
51
51
  exception = event.payload[:exception_object]
52
- Rails.logger.info("Exception: #{exception}")
53
52
  return unless exception
54
53
 
55
54
  if exception.respond_to?(:failed_messages)
@@ -76,7 +75,6 @@ module Deimos
76
75
  )
77
76
  end
78
77
  else
79
- Rails.logger.info(Deimos.config.metrics)
80
78
  Deimos.config.metrics&.increment(
81
79
  'publish_error',
82
80
  by: event.payload[:message_count] || 1
@@ -87,7 +85,6 @@ module Deimos
87
85
 
88
86
  ActiveSupport::Notifications.subscribe('deliver_messages.producer.kafka') do |*args|
89
87
  event = ActiveSupport::Notifications::Event.new(*args)
90
- Rails.logger.info(event.payload)
91
88
  KafkaListener.send_produce_error(event)
92
89
  end
93
90
  end
@@ -14,7 +14,6 @@ module Deimos
14
14
  raise 'Metrics config must specify namespace' if config[:namespace].nil?
15
15
 
16
16
  logger.info("DatadogMetricsProvider configured with: #{config}")
17
-
18
17
  @client = ::Datadog::Statsd.new(
19
18
  config[:host_ip],
20
19
  config[:host_port],
@@ -25,7 +24,6 @@ module Deimos
25
24
 
26
25
  # :nodoc:
27
26
  def increment(metric_name, options={})
28
- Rails.logger.info("Incrementing #{metric_name} #{options}")
29
27
  @client.increment(metric_name, options)
30
28
  end
31
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.23.1-beta6'
4
+ VERSION = '1.23.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.1.pre.beta6
4
+ version: 1.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
@@ -629,9 +629,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
629
629
  version: '0'
630
630
  required_rubygems_version: !ruby/object:Gem::Requirement
631
631
  requirements:
632
- - - ">"
632
+ - - ">="
633
633
  - !ruby/object:Gem::Version
634
- version: 1.3.1
634
+ version: '0'
635
635
  requirements: []
636
636
  rubygems_version: 3.1.2
637
637
  signing_key: