Class: Kubelink::Sentrylink

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/kubelink/sentry.rb

Defined Under Namespace

Modules: Controller, Helpers

Class Method Summary collapse

Class Method Details

.sentry_dsnObject



5
6
7
8
9
10
11
12
13
# File 'lib/kubelink/sentry.rb', line 5

def self.sentry_dsn
  @dsn ||= begin
    u = URI.parse(ENV['SENTRY_DSN'])
    u.password = nil
    u.to_s
  rescue StandardError
    nil
  end
end