@openctx/provider-sentry
v0.0.7
Published
Use information from Sentry.io issues (OpenCtx provider)
Downloads
39
Readme
Sentry issue context provider for OpenCtx
This is a context provider for OpenCtx that fetches contents from a Sentry issue by just pasting the URL to it.
Usage
Add the following to your settings in any OpenCtx client:
"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-sentry": {
"apiToken": "SENTRYTOKENHERE"
}
},
Then use the @
-mention type Sentry Issues and enter a URL, such as https://sourcegraph.sentry.io/issues/1234567890/?project=1234567&query=is%3Aunresolved+issue.priority%3A%5Bhigh%2C+medium%5D&referrer=issue-stream&statsPeriod=14d&stream_index=17
, to include the context in the Sentry issue.
Setup
For this provider to work, you need to provide an API token for your Sentry account.
To obtain one:
- Go to Sentry
- Click on your organization in the top left corner
- In the dropdown, select "User auth tokens"
- Create a new auth token on that page. For scopes, select
event:read, project:read
Then, add the token to your OpenCtx settings:
"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-sentry": {
"apiToken": "SENTRYTOKENHERE",
// or:
"apiTokenPath": "path/to/file/withsentrytoken"
}
},
Development
- Source code
- Docs
- License: Apache 2.0