Update README.md

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
This commit is contained in:
anicke
2023-07-09 08:35:57 +02:00
committed by Niklas Aronsson
parent a95bb64e46
commit 7b60335876
2 changed files with 20 additions and 11 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-airbrake': patch
---
Added documentation for the [new backend system](https://backstage.io/docs/backend-system/)
+15 -11
View File
@@ -98,17 +98,6 @@ The Airbrake plugin provides connectivity between Backstage and Airbrake (https:
}
```
```typescript
// Using the new backend system
import { airbrakePlugin } from '@backstage/plugin-airbrake-backend';
const backend = createBackend();
backend.add(airbrakePlugin());
// ... other feature additions
backend.start();
```
6. Add this config as a top level section in your `app-config.yaml`:
```yaml
@@ -127,6 +116,21 @@ The Airbrake plugin provides connectivity between Backstage and Airbrake (https:
airbrake.io/project-id: '123456'
```
#### New Backend System
The Airbrake backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up:
In your `packages/backend/src/index.ts` make the following changes:
```diff
import { createBackend } from '@backstage/backend-defaults';
+ import { airbrakePlugin } from '@backstage/plugin-airbrake-backend';
const backend = createBackend();
// ... other feature additions
+ backend.add(airbrakePlugin());
backend.start();
```
## Local Development
Start this plugin in standalone mode by running `yarn start` inside the plugin directory. This method of serving the plugin provides quicker