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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-10 21:09:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-10 21:09:28 +0300
commit2f7719abdfde4cb50ed05346b98bac26ea06a8de (patch)
tree71bc9a5cde931b50f38f2e2fe76cc67e1181e3d6 /doc/development/internal_api
parent37140013714814d8ffe662a372697c56eea2fde0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/internal_api')
-rw-r--r--doc/development/internal_api/index.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/development/internal_api/index.md b/doc/development/internal_api/index.md
index 06252ed1f79..fad651709e3 100644
--- a/doc/development/internal_api/index.md
+++ b/doc/development/internal_api/index.md
@@ -331,6 +331,37 @@ Example response:
- GitLab Shell
+## Authenticate Error Tracking requests
+
+This endpoint will be called by the error tracking GO REST API application to authenticate a project.
+
+| Attribute | Type | Required | Description |
+|:-------------|:--------|:---------|:-------------------------------------------------------------------|
+| `project_id` | integer | yes | The ID of the project which has the associated key. |
+| `public_key` | string | yes | The public key generated by the integrated error tracking feature. |
+
+```plaintext
+POST /internal/error_tracking_allowed
+```
+
+Example request:
+
+```shell
+curl --request POST --header "Gitlab-Shared-Secret: <Base64 encoded secret>" \
+ --data "project_id=111&public_key=generated-error-tracking-key" \
+ "http://localhost:3001/api/v4/internal/error_tracking_allowed"
+```
+
+Example response:
+
+```json
+{ "enabled": true }
+```
+
+### Known consumers
+
+- OpsTrace
+
## Incrementing counter on pre-receive
This is called from the Gitaly hooks increasing the reference counter