16 lines
434 B
Ruby
16 lines
434 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Gitlab
|
||
|
module Observability
|
||
|
module_function
|
||
|
|
||
|
def observability_url
|
||
|
return ENV['OVERRIDE_OBSERVABILITY_URL'] if ENV['OVERRIDE_OBSERVABILITY_URL']
|
||
|
# TODO Make observability URL configurable https://gitlab.com/gitlab-org/opstrace/opstrace-ui/-/issues/80
|
||
|
return 'https://observe.staging.gitlab.com' if Gitlab.staging?
|
||
|
|
||
|
'https://observe.gitlab.com'
|
||
|
end
|
||
|
end
|
||
|
end
|