Giter Site home page Giter Site logo

project11-a-web-fe-performance-monitoring-sdk's People

Contributors

eunbin-kim avatar gitdog01 avatar maong0927 avatar minbert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

project11-a-web-fe-performance-monitoring-sdk's Issues

[Feature] : (Optional) Error level 설정

Summary

특정 에러의 위험도를 설정한다. 세팅에서 규정한 위험도보다 높을 때 메일이나 슬랙으로 알림을 보낸다.

Additional Context

  • 에러 레벨 설정
  • captureMessage: (error, level = 'default') 와 같은 Argument 형식을 고려한다.

[Feature] : unhandled rejection handling

Summary

unhandled rejection handling 기능 추가

Additional Context

catch 하지 않은 promise error 리포트 해줄 수 있도록 unhandled rejection handling 추가

[Feature] : captureError

Summary

에러가 발생했을 경우 해당 에러를 서버쪽으로 전송한다.

  • 바닐라

  • express

  • react

Additional Context

try {
  aFunctionThatMightFail();
} catch (err) {
  Sentry.captureException(err);
}

// sentry-clone.js

let token; // <--

export default {
	...
	captureMessage: (error, level = 5) => {
		axios.post(
			'error 메세지 받는 URL', 
			{ error, level }, 
			{ header: `Bearer ${token}`}
		);
	}
}
  • 위 함수는 예시로 작성 된 것이며, 추가적 수정이 필요하다.
  • 에러메세지 내용을 서버로 전송한다.
  • (Optional) 에러가 난곳의 코드를 'fs' 모듈을 통해 직접 읽어 보낸다.

[Feature] : captureMessage

Summary

로그를 따로 기록하는 함수

Additional Context

// ~ YourCode ex) 로그인 기능코드 ~ //
Sentry.captureMessage(`${user.nickname}님이 로그인 하였습니다.`);
// ~ YourCode ~ //

export default {
	...
	captureMessage: (message, type = 'default') => {
		if(!typeList.includes(type)){
			throw new Error("지정되지 않은 타입입니다.")
		}
		axios.post(
			'로그 메세지 받는 URL', 
			{ message, level }, 
			{ header: `Bearer ${token}`}
		);
	}
}
  • 위 형식과 같이 기록하고 싶은 로그 중간에 삽입하는 형태의 함수이다.

[Feature] : 로그인 유저 정보 보내기

Summary

웹 페이지를 사용하는 유저에 대한 정보를 전송한다.

Additional Context

- [ ] 접속한 유저의 os와 버전 ( 쳐내기 )

  • 접속한 유저의 ip address와 email

[Feature] : init

Summary

SDK 초기설정을 위한 함수

Additional Context

ProjectID, Public Key 등을 argument로 받으며, 기본 백엔드 주소 설정

[Bug] : 프로젝트 만들기가 동작하지 않습니다

안녕하세요. 재밌는 프로젝트 하셨네요~

다만 배포된 url에서 해보려고했는데 잘 안되네요. 한번 확인해주세요 :)

To Reproduce

프로젝트 만들기 - 입력 후 - 프로젝트 만들기 클릭

Expected behavior

프로젝트가 생성되야할 것 같은데, 현재 반응 없음

Screenshots

500 에러 발생
스크린샷 2020-12-20 오후 9 53 06

Backlog Test

Summary

One paragraph description of the feature.

  • 할일

  • 할일2

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.