Skip to content

Commit 8d398e1

Browse files
committed
Make datadog optional on staging
1 parent 9186b7f commit 8d398e1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Depending on environment, this service changes behaviour with respect to interac
3939
- Local (filesystem-based) beatmap storage is used.
4040
- No purge requests to beatmap mirrors are made on beatmap updates.
4141
- Developer exception pages & API docs are disabled.
42-
- Sentry & Datadog integrations are mandatory.
42+
- Sentry integration is mandatory.
43+
- Datadog integration is optional.
4344
- `ASPNETCORE_ENVIRONMENT=Production`:
4445
- S3-based beatmap storage is used.
4546
- Purge requests to beatmap mirrors are made on beatmap updates.
@@ -62,5 +63,5 @@ Depending on environment, this service changes behaviour with respect to interac
6263
| `S3_CENTRAL_BUCKET_NAME` | The name of the S3 bucket to use for storing beatmap packages and versioned files. | ⚠ In production environment | None |
6364
| `S3_BEATMAPS_BUCKET_NAME` | The name of the S3 bucket to use for storing .osu beatmap files. | ⚠ In production environment | None |
6465
| `SENTRY_DSN` | A valid Sentry DSN to use for logging application events. | ⚠ In staging & production environment | None |
65-
| `DD_AGENT_HOST` | A hostname pointing to a Datadog agent instance to which metrics should be reported. | ⚠ In staging & production environment | None |
66+
| `DD_AGENT_HOST` | A hostname pointing to a Datadog agent instance to which metrics should be reported. | ⚠ In production environment | None |
6667

osu.Server.BeatmapSubmission/Program.cs

-6
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ public static void Main(string[] args)
7373
+ "Please set the value of this variable to a valid Sentry DSN to use for logging events.");
7474
}
7575

76-
if (AppSettings.DatadogAgentHost == null)
77-
{
78-
throw new InvalidOperationException("DD_AGENT_HOST environment variable not set. "
79-
+ "Please set the value of this variable to a valid hostname of a Datadog agent.");
80-
}
81-
8276
break;
8377
}
8478

0 commit comments

Comments
 (0)