63887ea84d
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.12.58 to 14.14.32. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
Rollbar Plugin
Website: https://rollbar.com/
Setup
-
Configure the rollbar backend plugin
-
If you have standalone app (you didn't clone this repo), then do
yarn add @backstage/plugin-rollbar
- Add plugin to the list of plugins:
// packages/app/src/plugins.ts
export { plugin as Rollbar } from '@backstage/plugin-rollbar';
- Add to the app
EntityPagecomponent:
// packages/app/src/components/catalog/EntityPage.tsx
import { Router as RollbarRouter } from '@backstage/plugin-rollbar';
// ...
const ServiceEntityPage = ({ entity }: { entity: Entity }) => (
<EntityPageLayout>
// ...
<EntityPageLayout.Content
path="/rollbar"
title="Errors"
element={<RollbarRouter entity={entity} />}
/>
</EntityPageLayout>
);
- Setup the
app.config.yamland account token environment variable
# app.config.yaml
rollbar:
organization: organization-name
# used by rollbar-backend
accountToken:
$env: ROLLBAR_ACCOUNT_TOKEN
- Annotate entities with the rollbar project slug
# pump-station-catalog-component.yaml
# ...
metadata:
annotations:
rollbar.com/project-slug: organization-name/project-name
# -- or just ---
rollbar.com/project-slug: project-name
- Run app with
yarn startand navigate to/rollbaror a catalog entity
Features
- List rollbar entities that are annotated with
rollbar.com/project-slug - View top active items for each rollbar annotated entity
Limitations
- Rollbar has rate limits per token