Skip to content

Commit

Permalink
openobserve: assert required params
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed May 16, 2024
1 parent efa3370 commit 7163c26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/clj/app/ig.clj
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@

(defmethod ig/init-key ::openobserve
[_ {:keys [url user password data-stream]}]
(μ/log ::openobserve-publisher :data-stream data-stream)
(assert url "url is required")
(assert user "user is required")
(assert password "password is required")
(assert data-stream "data-stream is required")
(μ/start-publisher!
{:type :elasticsearch
:url url
Expand Down

0 comments on commit 7163c26

Please sign in to comment.