Skip to content
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

3075-latency-parsing-errors #3236

Closed
3 changes: 2 additions & 1 deletion tdrs-backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ services:
- ELASTICSEARCH_LOG_INDEX_SLOW_THRESHOLD_INFO
- ELASTICSEARCH_LOG_INDEX_SLOW_THRESHOLD_TRACE
- ELASTICSEARCH_LOG_INDEX_SLOW_LEVEL
- ENABLE_SENTRY
volumes:
- .:/tdpapp
- logs:/tmp
- logs:/logs
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove before merge, only for testing

image: tdp-backend
build: .
command: >
Expand Down
1 change: 1 addition & 0 deletions tdrs-backend/tdpservice/parsers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ParserErrorAdmin(admin.ModelAdmin):
'error_message',
]

list_per_page = 50

class DataFileSummaryAdmin(admin.ModelAdmin):
"""ModelAdmin class for DataFileSummary objects generated in parsing."""
Expand Down
13 changes: 13 additions & 0 deletions tdrs-backend/tdpservice/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,3 +557,16 @@ class Common(Configuration):
BULK_CREATE_BATCH_SIZE = os.getenv("BULK_CREATE_BATCH_SIZE", 10000)
MEDIAN_LINE_PARSE_TIME = os.getenv("MEDIAN_LINE_PARSE_TIME", 0.0005574226379394531)
BYPASS_OFA_AUTH = os.getenv("BYPASS_OFA_AUTH", False)

# Sentry
import sentry_sdk
sentry_sdk.init(
dsn="https://1cabed98ed242ea8f6fb130695e86f79@o4507307346493440.ingest.us.sentry.io/4508161320288256",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
)
2 changes: 1 addition & 1 deletion tdrs-backend/tdpservice/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Local(Common):
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
sentry_sdk.init(
dsn="http://[email protected]:9001/2",
dsn="http://[email protected]:9001/1",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: this is for my personal environment. change it for your environment if you are planning to look at Sentry yourself.

# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
integrations=[
Expand Down
Loading