multiwoven-integrations 0.15.7 → 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: 32c240b4b7351393469c38c3a9350b48314081f8c86c3a47a1f5d2f8f5135551
4
- data.tar.gz: 84ba1001f04a3aa82756309df45ab402ce602d1e87c9cca6a34228a6167e5129
3
+ metadata.gz: 7d481d629c9d1e2ba54774cd14c52a9b926503e241b6eab0dfc0200a5e63ae41
4
+ data.tar.gz: df8681c3c7cd33f5cb7116b00eae8f3b5aa24ef48520dfc0a71b95dfa93c0fe7
5
5
  SHA512:
6
- metadata.gz: 5657d3ad9501a1775fee054880615a0b8d181ce84e9ca05e63e6ad5629c8258266aa652e7aa37f10d817f71ab6df2c9bcb25fb8d6e036ce9eecf5d3bd8196cb6
7
- data.tar.gz: 52be9d52894d822e4d003993ea4b5c82706cd740b70eb74ff917bb851bb9f5e48f18f43cfe3896bb996b75a51db2ebed31a70eeab4b057da91c4c1819f5349c5
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.7"
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
 
@@ -25,6 +25,9 @@
25
25
  "order": 2,
26
26
  "additionalProperties": {
27
27
  "type": "string"
28
+ },
29
+ "default": {
30
+ "Content-Type": "application/json"
28
31
  }
29
32
  },
30
33
  "config": {
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.7
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-11-29 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