Skip to content

Commit

Permalink
Move some integrations-related modules around
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Mar 24, 2024
1 parent b197090 commit 8eeca14
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/sentry/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ defmodule Sentry.Application do

defp start_integrations(config) do
if config[:oban][:cron][:enabled] do
Sentry.Cron.Oban.attach_telemetry_handler()
Sentry.Integrations.Oban.Cron.attach_telemetry_handler()
end

if config[:oban][:capture_errors] do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Sentry.Cron.Oban do
defmodule Sentry.Integrations.Oban.Cron do
@moduledoc false

@events [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Sentry.Cron.Quantum do
defmodule Sentry.Integrations.Quantum.Cron do
@moduledoc false

@events [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# TODO: Oban requires Elixir 1.13+, remove this once we depend on that too.
if Version.match?(System.version(), "~> 1.13") do
defmodule Sentry.Cron.ObanTest do
defmodule Sentry.Integrations.Oban.CronTest do
use Sentry.Case, async: false

import Sentry.TestHelpers

setup_all do
Sentry.Cron.Oban.attach_telemetry_handler()
Sentry.Integrations.Oban.Cron.attach_telemetry_handler()
end

setup do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TODO: Quantum requires Elixir 1.12+, remove this once we depend on that too.
if Version.match?(System.version(), "~> 1.12") do
defmodule Sentry.Cron.QuantumTest do
defmodule Sentry.Integrations.Quantum.CronTest do
use Sentry.Case, async: false

import Sentry.TestHelpers
Expand All @@ -10,7 +10,7 @@ if Version.match?(System.version(), "~> 1.12") do
end

setup_all do
Sentry.Cron.Quantum.attach_telemetry_handler()
Sentry.Integrations.Quantum.Cron.attach_telemetry_handler()
end

setup do
Expand Down

0 comments on commit 8eeca14

Please sign in to comment.