Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/observability.rb')
-rw-r--r--lib/gitlab/observability.rb16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/gitlab/observability.rb b/lib/gitlab/observability.rb
index b500df86363..a4e18cc170b 100644
--- a/lib/gitlab/observability.rb
+++ b/lib/gitlab/observability.rb
@@ -27,13 +27,8 @@ module Gitlab
"#{Gitlab::Observability.observability_url}/v1/auth/start"
end
- def tracing_url(project)
- "#{Gitlab::Observability.observability_url}/query/#{project.group.id}/#{project.id}/v1/traces"
- end
-
- def provisioning_url(_project)
- # TODO Change to correct endpoint when API is ready
- Gitlab::Observability.observability_url.to_s
+ def provisioning_url(project)
+ "#{Gitlab::Observability.observability_url}/v3/tenant/#{project.id}"
end
# Returns true if the GitLab Observability UI (GOUI) feature flag is enabled
@@ -46,11 +41,6 @@ module Gitlab
Feature.enabled?(:observability_group_tab)
end
- # Returns true if Tracing UI is enabled
- def tracing_enabled?(project)
- Feature.enabled?(:observability_tracing, project)
- end
-
# Returns the embeddable Observability URL of a given URL
#
# - Validates the URL
@@ -163,3 +153,5 @@ module Gitlab
end
end
end
+
+Gitlab::Observability.prepend_mod_with('Gitlab::Observability')