Skip to content
Snippets Groups Projects
Unverified Commit fd1e2db1 authored by Dmytro Zaporozhets's avatar Dmytro Zaporozhets
Browse files

Add sentry_dsn to error tracking API


Expose sentry_dsn method to error tracking client keys API.

Changelog: added

Signed-off-by: default avatarDmytro Zaporozhets <dzaporozhets@gitlab.com>
parent 079122ca
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -96,12 +96,14 @@ Example response:
{
"id": 1,
"active": true,
"public_key": "glet_aa77551d849c083f76d0bc545ed053a3"
"public_key": "glet_aa77551d849c083f76d0bc545ed053a3",
"sentry_dsn": "https://glet_aa77551d849c083f76d0bc545ed053a3@gitlab.example.com/api/v4/error_tracking/collector/5"
},
{
"id": 3,
"active": true,
"public_key": "glet_0ff98b1d849c083f76d0bc545ed053a3"
"public_key": "glet_0ff98b1d849c083f76d0bc545ed053a3",
"sentry_dsn": "https://glet_0ff98b1d849c083f76d0bc545ed053a3@gitlab.example.com/api/v4/error_tracking/collector/5"
}
]
```
Loading
Loading
@@ -129,7 +131,8 @@ Example response:
{
"id": 3,
"active": true,
"public_key": "glet_0ff98b1d849c083f76d0bc545ed053a3"
"public_key": "glet_0ff98b1d849c083f76d0bc545ed053a3",
"sentry_dsn": "https://glet_0ff98b1d849c083f76d0bc545ed053a3@gitlab.example.com/api/v4/error_tracking/collector/5"
}
```
 
Loading
Loading
Loading
Loading
@@ -15,6 +15,7 @@ class ClientKey < Grape::Entity
expose :id
expose :active
expose :public_key
expose :sentry_dsn
end
end
end
Loading
Loading
Loading
Loading
@@ -63,6 +63,7 @@
 
expect(json_response['id']).to eq(new_key.id)
expect(json_response['public_key']).to eq(new_key.public_key)
expect(json_response['sentry_dsn']).to eq(new_key.sentry_dsn)
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment