We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b435bf1 commit b7655ffCopy full SHA for b7655ff
src/server/main.py
@@ -33,6 +33,7 @@
33
profile_session_sample_rate = float(os.getenv("GITINGEST_SENTRY_PROFILE_SESSION_SAMPLE_RATE", "1.0"))
34
profile_lifecycle = os.getenv("GITINGEST_SENTRY_PROFILE_LIFECYCLE", "trace")
35
send_default_pii = os.getenv("GITINGEST_SENTRY_SEND_DEFAULT_PII", "true").lower() == "true"
36
+ sentry_environment = os.getenv("GITINGEST_SENTRY_ENVIRONMENT", "")
37
38
sentry_sdk.init(
39
dsn=sentry_dsn,
@@ -44,6 +45,8 @@
44
45
profile_session_sample_rate=profile_session_sample_rate,
46
# Set profile_lifecycle to automatically run the profiler
47
profile_lifecycle=profile_lifecycle,
48
+ # Set environment name
49
+ environment=sentry_environment,
50
)
51
52
# Initialize the FastAPI application with lifespan
0 commit comments