Skip to content

feat: sentry sdk integration #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ transformers
jinja2==3.1.0
python-dotenv==1.0.1
PyJWT==2.9.0
stripe
stripe
sentry-sdk[fastapi]
5 changes: 5 additions & 0 deletions services/image_generation_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
from utils.data_types import Prompt, TextPrompt, TextToImage, ImageToImage, ValidatorInfo, ChatCompletion
from fastapi.middleware.cors import CORSMiddleware
from transformers import AutoTokenizer
import sentry_sdk

sentry_sdk.init(
dsn="https://c29179b17e940dd744ef5987e54076ff@o4508692980170752.ingest.us.sentry.io/4508721596334080",
)

# Define a list of allowed origins (domains)
allowed_origins = [
Expand Down