diff --git a/.changeset/modern-lizards-sniff.md b/.changeset/modern-lizards-sniff.md new file mode 100644 index 0000000000..cf1994ee7f --- /dev/null +++ b/.changeset/modern-lizards-sniff.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-airbrake-backend': minor +--- + +Created the Airbrake backend plugin that proxies requests to the Airbrake API diff --git a/.changeset/unlucky-spoons-sort.md b/.changeset/unlucky-spoons-sort.md deleted file mode 100644 index 9c0d6cb49b..0000000000 --- a/.changeset/unlucky-spoons-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'backstage-plugin-airbrake-backend': minor ---- - -Airbrake backend plugin created which proxies all requests to Airbrake's API diff --git a/packages/backend/package.json b/packages/backend/package.json index 6f3621cc85..b61b7ad81c 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -30,6 +30,7 @@ "@backstage/catalog-model": "^0.9.10", "@backstage/config": "^0.1.13", "@backstage/integration": "^0.7.2", + "@backstage/plugin-airbrake-backend": "^0.0.0", "@backstage/plugin-app-backend": "^0.3.23", "@backstage/plugin-auth-backend": "^0.9.0", "@backstage/plugin-azure-devops-backend": "^0.3.2", @@ -59,7 +60,6 @@ "@gitbeaker/node": "^35.1.0", "@octokit/rest": "^18.5.3", "azure-devops-node-api": "^11.0.1", - "backstage-plugin-airbrake-backend": "^0.0.0", "dockerode": "^3.3.1", "example-app": "file:../app", "express": "^4.17.1", diff --git a/plugins/airbrake-backend/api-report.md b/plugins/airbrake-backend/api-report.md new file mode 100644 index 0000000000..cd56b87f86 --- /dev/null +++ b/plugins/airbrake-backend/api-report.md @@ -0,0 +1,35 @@ +## API Report File for "@backstage/plugin-airbrake-backend" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts +import express from 'express'; +import { Logger as Logger_2 } from 'winston'; +import { Options } from 'http-proxy-middleware/dist/types'; + +// Warning: (ae-missing-release-tag) "createRouter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export function createRouter(options: RouterOptions): Promise; + +// Warning: (ae-missing-release-tag) "generateAirbrakePathRewrite" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export const generateAirbrakePathRewrite: ( + options: RouterOptions, +) => Options['pathRewrite']; + +// Warning: (ae-missing-release-tag) "RouterOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface RouterOptions { + // Warning: (ae-forgotten-export) The symbol "AirbrakeConfig" needs to be exported by the entry point index.d.ts + // + // (undocumented) + airbrakeConfig: AirbrakeConfig; + // (undocumented) + logger: Logger_2; +} + +// (No @packageDocumentation comment for this package) +``` diff --git a/plugins/airbrake-backend/package.json b/plugins/airbrake-backend/package.json index 3f174caee4..812ad33654 100644 --- a/plugins/airbrake-backend/package.json +++ b/plugins/airbrake-backend/package.json @@ -1,5 +1,5 @@ { - "name": "backstage-plugin-airbrake-backend", + "name": "@backstage/plugin-airbrake-backend", "version": "0.0.0", "main": "src/index.ts", "types": "src/index.ts",