Giter VIP home page Giter VIP logo

sentry-primer's Introduction

2020/12/04 社内勉強会で使用

Sentry を理解しデプロイフローで何が必要か、初期化でどんなオプションが入れられるか、エラーをコードベースで送信しないなどを解説した。

個人的にも多少まとめている。

Quick Start

Install

$ yarn

Setup

.env.example を参考に .env を作成

NEXT_PUBLIC_SENTRY_DSN= Sentry で DSN を払い出し(プロジェクト作成時に出てくる)
NEXT_PUBLIC_APP_ENV= production | development | local など
SENTRY_ORG= Orgnization 名
SENTRY_PROJECT= Project 名
SENTRY_AUTH_TOKEN= User Settings から API Token が必要(権限は project:release だけで良い)

development

$ yarn dev

build

$ yarn build

.env の設定が満たされている && git 管理下にある(コミットハッシュを取得する)という条件で SourceMap を Sentry に送信する。

Sentry CLI finalize

# 環境変数に適切な SENTRY_AUTH_TOKEN が存在した上で
$ sentry-cli releases deploys ${commit hash}  new --env production

で最終的なデプロイ後のトラッキングが始まる。

sentry-primer's People

Watchers

Satoshi Takeda avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.