Skip to content

Commit

Permalink
feat: report some server info
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Aug 27, 2024
1 parent 0de895b commit 9427b65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tower_rollbar/rollbar/item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ defmodule TowerRollbar.Rollbar.Item do
"environment" => environment(),
"timestamp" => Keyword.fetch!(options, :timestamp),
"language" => "elixir",
"server" => %{
"node" => node(),
"os" => os()
},
"notifier" => %{
"name" => "tower_rollbar",
"version" => Application.spec(:tower_rollbar, :vsn) |> to_string()
Expand Down Expand Up @@ -168,4 +172,8 @@ defmodule TowerRollbar.Rollbar.Item do
end)
|> Enum.into(%{})
end

defp os do
"type: #{inspect(:os.type())} version: #{inspect(:os.version())}"
end
end

0 comments on commit 9427b65

Please sign in to comment.