Skip to content

Instantly share code, notes, and snippets.

View lironhl's full-sized avatar
🔎
Searching for a good-first-issue.

Liron Haim Lavy lironhl

🔎
Searching for a good-first-issue.
  • Israel
  • 18:30 (UTC +03:00)
View GitHub Profile
@nguqtruong
nguqtruong / fastapi_app.py
Created April 8, 2021 16:21
Integrate Sentry to FastAPI
import os
from fastapi import FastAPI
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
import sentry_sdk
sentry_sdk.init(
dsn='your Sentry dns', # CHANGE HERE
environment=os.getenv('ENV', 'dev'), # You should read it from environment variable
@slightfoot
slightfoot / error_capture.dart
Last active April 26, 2021 12:03
Crash Reporting / Error Capture for Flutter
///
/// Flutter Captured Error Reporting
/// Created by Simon Lightfoot
///
/// Copyright (C) DevAngels Limited 2018
/// License: APACHE 2.0 - https://www.apache.org/licenses/LICENSE-2.0
///
import 'dart:async';
import 'dart:io';
import 'dart:ui' as ui show window;