search-engine-for-typesense 30.1.8.0 → 30.1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aaf8bb3d4e611947e53c7d0c4d5c2558a9fa70ce443ae68a5535e8baef23964d
|
|
4
|
+
data.tar.gz: 89b421b5a26498bb215cdb48cdeb5be93431e203141fb214ee26f00b80ae902b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b06ce54987174bdd073c00c95d43d2878d4d2cc375f8d5446c75b6834ff4def16d453376b1dd66c804f9365352500ee7c3fa2e8372d1f7c751b2808d12981f2
|
|
7
|
+
data.tar.gz: e20b2fbbee96f55b61c65f5feb0733e81abf73c3cea371061a7a0721625075458ecf9bd23ab672e6e804d2ebdaf7e48b896d809c70362c34f9e2ffe295f8fc43
|
|
@@ -43,9 +43,9 @@ module SearchEngine
|
|
|
43
43
|
run_store = indexing_run_store(run_id)
|
|
44
44
|
partition_key ||= SearchEngine::IndexingRun.partition_key(partition) if run_id
|
|
45
45
|
run_store&.mark_started(run_id: run_id, partition_key: partition_key, job_id: job_id)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
instrument_event('search_engine.dispatcher.job_started',
|
|
47
|
+
payload.merge(queue: queue_name, job_id: job_id, metadata: metadata)
|
|
48
|
+
)
|
|
49
49
|
|
|
50
50
|
started = monotonic_ms
|
|
51
51
|
summary = nil
|
|
@@ -55,7 +55,7 @@ module SearchEngine
|
|
|
55
55
|
duration = (monotonic_ms - started).round(1)
|
|
56
56
|
run_store&.mark_succeeded(run_id: run_id, partition_key: partition_key, summary: summary)
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
instrument_event(
|
|
59
59
|
'search_engine.dispatcher.job_finished',
|
|
60
60
|
payload.merge(queue: queue_name, job_id: job_id, duration_ms: duration, status: summary.status,
|
|
61
61
|
metadata: metadata
|
|
@@ -101,7 +101,7 @@ module SearchEngine
|
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
wait_seconds = policy.next_delay(attempt_no + 1, error)
|
|
104
|
-
|
|
104
|
+
instrument_event(
|
|
105
105
|
'search_engine.dispatcher.job_error',
|
|
106
106
|
error_payload(error).merge(queue: queue_name, job_id: job_id, retry_after_s: wait_seconds)
|
|
107
107
|
)
|
|
@@ -141,7 +141,7 @@ module SearchEngine
|
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
def instrument_error(error, payload: nil)
|
|
144
|
-
|
|
144
|
+
instrument_event(
|
|
145
145
|
'search_engine.dispatcher.job_error',
|
|
146
146
|
(payload || {}).merge(queue: queue_name, job_id: job_id, error_class: error.class.name,
|
|
147
147
|
message_truncated: error.message.to_s[0, 200]
|
|
@@ -149,7 +149,7 @@ module SearchEngine
|
|
|
149
149
|
)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
def
|
|
152
|
+
def instrument_event(event, payload)
|
|
153
153
|
SearchEngine::Instrumentation.instrument(event, payload) {}
|
|
154
154
|
end
|
|
155
155
|
|