multiwoven-integrations 0.15.8 → 0.15.9

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: fe7a29213798a9623c099ad656bf59c4df6644abc2f3f6fa1bb564027e2ea542
4
- data.tar.gz: f40d9a3f8777343e97ab5a59a345c5d2f09cab796c4003f3318e34da5e21c9f4
3
+ metadata.gz: 7d481d629c9d1e2ba54774cd14c52a9b926503e241b6eab0dfc0200a5e63ae41
4
+ data.tar.gz: df8681c3c7cd33f5cb7116b00eae8f3b5aa24ef48520dfc0a71b95dfa93c0fe7
5
5
  SHA512:
6
- metadata.gz: 7ee67556ae997eb3823f0918be2c1cec8fbf0fbfa1c29d482b5ed1abbc8190fa85909697dc0c776d68ada30dfc4d25eda71e0696a502984ba4c39dddcb68bc95
7
- data.tar.gz: 936b5cb63ec6b668d23acdef259604c9ea6040c065b936c072a4a9bb44fd917517c36f8b36c70faa6653ad86c18aae356be612ea3ca995add242abc6274c29a2
6
+ metadata.gz: d7ac53c32697fc0dbbe4dbefc3fd60aff18914d4e6a4fee6c2e18b08ccfbba179cb1de0816ef936c333898f93b4c767f834a8e960b56765181a76afec8d1a03c
7
+ data.tar.gz: 3b532bc6d382dc8e7b2362eb7c48dcca2ff9e0afc43dc0701ffd6b4a25da696c6e009e8506d6dac95cf16cf237744db5238b486c7e12897b7216943b208ef8b7
@@ -61,11 +61,11 @@ module Multiwoven
61
61
  )
62
62
  end
63
63
 
64
- def create_log_message(context, type, exception)
64
+ def create_log_message(context, type, message)
65
65
  Integrations::Protocol::LogMessage.new(
66
66
  name: context,
67
67
  level: type,
68
- message: exception.message
68
+ message: message
69
69
  ).to_multiwoven_message
70
70
  end
71
71
 
@@ -74,7 +74,7 @@ module Multiwoven
74
74
  "#{hash_to_string(meta)}: #{exception.message}"
75
75
  )
76
76
  report_exception(exception, meta)
77
- create_log_message(meta[:context], meta[:type], exception)
77
+ create_log_message(meta[:context], meta[:type], exception.message)
78
78
  end
79
79
 
80
80
  def hash_to_string(hash)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.15.8"
5
+ VERSION = "0.15.9"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -65,7 +65,7 @@ module Multiwoven::Integrations::Source
65
65
  data = JSON.parse(response.body)
66
66
  [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
67
67
  else
68
- create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "request failed")
68
+ create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "request failed: #{response.body}")
69
69
  end
70
70
  end
71
71
 
@@ -72,7 +72,7 @@ module Multiwoven::Integrations::Source
72
72
  data = JSON.parse(response.body)
73
73
  [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
74
74
  else
75
- create_log_message("HTTP MODEL:RUN_MODEL", "error", "request failed")
75
+ create_log_message("HTTP MODEL:RUN_MODEL", "error", "request failed: #{response.body}")
76
76
  end
77
77
  end
78
78
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.8
4
+ version: 0.15.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-05 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport