Skip to content

Commit

Permalink
Enable host metrics by default (#66)
Browse files Browse the repository at this point in the history
Closes #65.
  • Loading branch information
jeffkreeftmeijer authored and Arjan Scherpenisse committed Jan 11, 2017
1 parent 4b43d79 commit 05f5b5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/appsignal/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Appsignal.Config do

@default_config %{
debug: false,
enable_host_metrics: false,
enable_host_metrics: true,
endpoint: "https://push.appsignal.com",
env: :dev,
filter_parameters: nil,
Expand Down
14 changes: 7 additions & 7 deletions test/config/appsignal_config_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ defmodule AppsignalConfigTest do
end

test "enable_host_metrics" do
add_to_application_env(:enable_host_metrics, true)
assert valid_configuration |> Map.put(:enable_host_metrics, true) == init_config
assert "true" == System.get_env("APPSIGNAL_ENABLE_HOST_METRICS")
add_to_application_env(:enable_host_metrics, false)
assert valid_configuration |> Map.put(:enable_host_metrics, false) == init_config
assert "false" == System.get_env("APPSIGNAL_ENABLE_HOST_METRICS")
end

test "log" do
Expand Down Expand Up @@ -255,9 +255,9 @@ defmodule AppsignalConfigTest do
end

test "enable_host_metrics" do
System.put_env("APPSIGNAL_ENABLE_HOST_METRICS", "true")
assert valid_configuration |> Map.put(:enable_host_metrics, true) == init_config
assert "true" == System.get_env("APPSIGNAL_ENABLE_HOST_METRICS")
System.put_env("APPSIGNAL_ENABLE_HOST_METRICS", "false")
assert valid_configuration |> Map.put(:enable_host_metrics, false) == init_config
assert "false" == System.get_env("APPSIGNAL_ENABLE_HOST_METRICS")
end

test "log" do
Expand Down Expand Up @@ -356,7 +356,7 @@ defmodule AppsignalConfigTest do
%{
active: false,
debug: false,
enable_host_metrics: false,
enable_host_metrics: true,
endpoint: "https://push.appsignal.com",
env: :dev,
filter_parameters: nil,
Expand Down

0 comments on commit 05f5b5e

Please sign in to comment.