bcbff6d76f
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 10.4.3 to 11.2.5. - [Release notes](https://github.com/testing-library/react-testing-library/releases) - [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md) - [Commits](https://github.com/testing-library/react-testing-library/compare/v10.4.3...v11.2.5) Signed-off-by: dependabot[bot] <support@github.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