0.0.0-nightly-20217102201 • Published 4 years ago

@backstage/plugin-sentry v0.0.0-nightly-20217102201

Weekly downloads
579
License
Apache-2.0
Repository
github
Last release
4 years ago

Sentry Plugin

The Sentry Plugin displays issues from Sentry.

Sentry Card

Getting Started

  1. Install the Sentry Plugin:
# From your Backstage root directory
cd packages/app
yarn add @backstage/plugin-sentry
  1. Add the EntitySentryCard to the EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx

import { EntitySentryCard } from '@backstage/plugin-sentry';

const overviewContent = (
  <Grid container spacing={3} alignItems="stretch">
    // ...
    <Grid item xs={12} sm={6} md={4}>
      <EntitySentryCard />
    </Grid>
    // ...
  </Grid>
);

You can also import the full-page EntitySentryContent extension if you want to have a dedicated sentry page:

// packages/app/src/components/catalog/EntityPage.tsx

import { EntitySentryContent } from '@backstage/plugin-sentry';

const serviceEntityPage = (
  <EntityLayout>
    // ...
    <EntityLayout.Route path="/sentry" title="Sentry">
      <EntitySentryContent />
    </EntityLayout.Route>
    // ...
  </EntityLayout>
);
  1. Add the proxy config:
# app-config.yaml

proxy:
  '/sentry/api':
    target: https://sentry.io/api/
    allowedMethods: ['GET']
    headers:
      Authorization: Bearer ${SENTRY_TOKEN}

sentry:
  organization: <your-organization>
  1. Create a new internal integration with the permissions Issues & Events: Read (https://docs.sentry.io/product/integrations/integration-platform/) and provide it as SENTRY_TOKEN as env variable.

  2. Add the sentry.io/project-slug annotation to your catalog-info.yaml file:

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: backstage
  description: |
    Backstage is an open-source developer portal that puts the developer experience first.
  annotations:
    sentry.io/project-slug: YOUR_PROJECT_SLUG
spec:
  type: library
  owner: CNCF
  lifecycle: experimental

Demo Mode

The plugin provides a MockAPI that always returns dummy data instead of talking to the sentry backend. You can add it by overriding the sentryApiRef:

// packages/app/src/apis.ts

import { createApiFactory } from '@backstage/core';
import { MockSentryApi, sentryApiRef } from '@backstage/plugin-sentry';

export const apis = [
  // ...

  createApiFactory(sentryApiRef, new MockSentryApi()),
];
0.5.20

2 years ago

0.5.19

2 years ago

0.5.19-next.1

2 years ago

0.5.19-next.0

2 years ago

0.5.18

2 years ago

0.5.17

2 years ago

0.5.16

2 years ago

0.5.16-next.2

2 years ago

0.5.16-next.1

2 years ago

0.5.16-next.0

2 years ago

0.5.15

2 years ago

0.5.15-next.3

2 years ago

0.5.15-next.2

2 years ago

0.5.15-next.1

2 years ago

0.5.15-next.0

2 years ago

0.5.14

2 years ago

0.5.14-next.2

2 years ago

0.5.14-next.1

2 years ago

0.5.14-next.0

2 years ago

0.5.13

2 years ago

0.5.13-next.3

2 years ago

0.5.13-next.2

2 years ago

0.5.13-next.1

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.6-next.1

2 years ago

0.5.9-next.1

2 years ago

0.5.9-next.2

2 years ago

0.5.9-next.3

2 years ago

0.5.6-next.0

2 years ago

0.5.10

2 years ago

0.5.11

2 years ago

0.5.12

2 years ago

0.5.13-next.0

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.9

2 years ago

0.5.10-next.1

2 years ago

0.5.10-next.0

2 years ago

0.5.10-next.2

2 years ago

0.5.5-next.1

2 years ago

0.5.5-next.2

2 years ago

0.5.11-next.2

2 years ago

0.5.11-next.1

2 years ago

0.5.11-next.0

2 years ago

0.5.8-next.0

2 years ago

0.5.5-next.0

2 years ago

0.5.4

2 years ago

0.5.4-next.2

2 years ago

0.5.4-next.3

2 years ago

0.5.3

3 years ago

0.5.3-next.1

3 years ago

0.5.3-next.2

3 years ago

0.5.4-next.1

3 years ago

0.5.4-next.0

3 years ago

0.5.2

3 years ago

0.5.2-next.3

3 years ago

0.5.3-next.0

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.5.1-next.1

3 years ago

0.5.1-next.0

3 years ago

0.5.1-next.2

3 years ago

0.5.2-next.1

3 years ago

0.5.2-next.2

3 years ago

0.5.2-next.0

3 years ago

0.4.7-next.1

3 years ago

0.4.7-next.2

3 years ago

0.4.8-next.1

3 years ago

0.4.8-next.0

3 years ago

0.4.7

3 years ago

0.5.0-next.2

3 years ago

0.4.7-next.0

3 years ago

0.4.4-next.1

3 years ago

0.4.4-next.0

3 years ago

0.4.5-next.3

3 years ago

0.4.5-next.4

3 years ago

0.4.5-next.1

3 years ago

0.4.5-next.2

3 years ago

0.4.5-next.0

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.6

3 years ago

0.4.3

3 years ago

0.4.3-next.0

3 years ago

0.4.3-next.1

3 years ago

0.4.3-next.2

3 years ago

0.4.2-next.2

3 years ago

0.4.2-next.3

3 years ago

0.4.2-next.0

3 years ago

0.4.2-next.1

3 years ago

0.4.2

3 years ago

0.4.1-next.1

3 years ago

0.4.1-next.0

3 years ago

0.3.45-next.2

3 years ago

0.3.45-next.1

3 years ago

0.3.45-next.0

3 years ago

0.3.44-next.0

4 years ago

0.3.44-next.1

4 years ago

0.3.44

3 years ago

0.4.0-next.3

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.43

4 years ago

0.3.43-next.1

4 years ago

0.3.43-next.0

4 years ago

0.3.43-next.2

4 years ago

0.3.42

4 years ago

0.3.41

4 years ago

0.3.40

4 years ago

0.3.40-next.0

4 years ago

0.3.42-next.0

4 years ago

0.3.42-next.1

4 years ago

0.3.42-next.2

4 years ago

0.3.39

4 years ago

0.3.36-next.0

4 years ago

0.3.35-next.0

4 years ago

0.3.34-next.0

4 years ago

0.3.31

4 years ago

0.3.30

4 years ago

0.3.38

4 years ago

0.3.37

4 years ago

0.3.36

4 years ago

0.3.35

4 years ago

0.3.34

4 years ago

0.3.33

4 years ago

0.3.32

4 years ago

0.3.29

4 years ago

0.3.28

4 years ago

0.3.27

4 years ago

0.3.26

4 years ago

0.3.25

4 years ago

0.3.24

4 years ago

0.3.23

4 years ago

0.3.22

4 years ago

0.3.21

4 years ago

0.3.20

4 years ago

0.3.19

4 years ago

0.3.18

4 years ago

0.3.17

4 years ago

0.3.16

4 years ago

0.3.15

4 years ago

0.3.14

4 years ago

0.3.13

4 years ago

0.3.12

4 years ago

0.3.11

5 years ago

0.3.9

5 years ago

0.3.10

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.1-alpha.26

5 years ago

0.1.1-alpha.25

5 years ago

0.1.1-alpha.24

5 years ago

0.1.1-alpha.23

5 years ago

0.1.1-alpha.22

5 years ago

0.1.1-alpha.21

5 years ago

0.1.1-alpha.20

5 years ago

0.1.1-alpha.19

5 years ago

0.1.1-alpha.18

5 years ago

0.1.1-alpha.17

5 years ago

0.1.1-alpha.16

5 years ago

0.1.1-alpha.15

5 years ago

0.1.1-alpha.14

5 years ago

0.1.1-alpha.13

5 years ago

0.1.1-alpha.12

5 years ago

0.1.1-alpha.11

5 years ago

0.1.1-alpha.10

5 years ago

0.1.1-alpha.9

5 years ago