Skip to content

Commit

Permalink
add honeybadger event per openrations
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Sep 23, 2024
1 parent 56ed598 commit d559afc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/lib/canary_web/operations_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ defmodule CanaryWeb.OperationsController do
end

def search(conn, %{"query" => query, "sources" => sources}) do
Honeybadger.event("search", %{account_id: conn.assigns.current_account.id})

sources = find_sources(conn, sources)

case Canary.Searcher.run(sources, query, cache: cache?()) do
Expand All @@ -62,6 +64,8 @@ defmodule CanaryWeb.OperationsController do
end

def ask(conn, %{"query" => query, "sources" => sources}) do
Honeybadger.event("ask", %{account_id: conn.assigns.current_account.id})

sources = find_sources(conn, sources)

conn =
Expand Down

0 comments on commit d559afc

Please sign in to comment.