Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Como monitorar os erros da sua aplicação com o Sentry

Como monitorar os erros da sua aplicação com o Sentry

Palestra no FLISOL-DF 2018 sobre a ferramenta Sentry e como pode auxiliar o time de desenvolvimento a capturar erros para uma correção eficiente.

Demo: https://github.com/gilsondev/sentry-demo

Gilson Filho

April 25, 2018
Tweet

More Decks by Gilson Filho

Other Decks in Programming

Transcript

  1. Gilson Filho • Web Developer • IFRN Developer (ENAP) ◦

    SUAP • Scraping and Data Mining • Opensource Enthusiast ◦ Meu Candidato ◦ Procult (SECULT-DF) • GruPy-DF 2 Email: [email protected] Phone: (61) 9 8334-2344 Telegram: @gilsondev
  2. A release isn’t the end… 3 Errors are your first

    chance to iterate. If bugs make it to production, jump into action before your users even notice a problem. Your customers (and your workflow) will thank you.
  3. “ The server is in Python, but it contains a

    full API for sending events from any language, in any application. 6
  4. What is Sentry? ▷ Open source (BSD License) ▷ Self

    hosted and cloud (sentry.io) ▷ Clients for any languages (SDKs) ▷ Integrations for any platforms 7
  5. Like stack traces, but more and better 8 Source code

    Sentry shows your source code right in the stacktrace, so you don’t need to find it yourself.
  6. Like stack traces, but more and better 9 Error filters

    In noisy traces, you can filter to see just your application errors, include framework errors, or show the raw trace.
  7. Like stack traces, but more and better 10 Sensitive data

    scrubbing We automatically scrub things that look like credit cards, or contain things like password, secret, or api_key. You can also specify custom values to scrub and filter data on the client side before it gets sent to us.
  8. 11

  9. 12

  10. 14

  11. 15

  12. 16

  13. 17

  14. 18

  15. 19

  16. 20

  17. 21

  18. Create a Project Choose your language or framework and define

    a project name to receive all errors of application 23
  19. Choose your SDK Sentry captures data by using an SDK

    within your application’s runtime. These are platform specific, and allow Sentry to have a deep understanding of both how your application works. 24
  20. Use the DSN of Project With project created, use the

    Data Source Name and configure your application to SDK send errors data (backend and/or frontend) 25
  21. Recap Configure Define the DSN generated on the settings of

    your project Create Project Define new project on the Sentry, if not exists Install SDK Use the SDK of your language and follow the documentation 26
  22. 28

  23. 31