Skip to content

Commit b31cb80

Browse files
author
Ignacio Bonafonte
authored
Merge pull request #286 from nachoBonafonte/Datadog-exporter-us5-endpoint
Datadog Exporter: Add us5. endpoint
2 parents ecb8f4a + ac0b770 commit b31cb80

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ import Foundation
77

88
public enum Endpoint {
99
/// US based servers.
10-
/// Sends logs to [app.datadoghq.com](https://app.datadoghq.com/).
10+
/// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
1111
case us1
1212
/// US3 based servers.
13-
/// Sends logs to [us3.datadoghq.com](https://us3.datadoghq.com/).
13+
/// Sends data to [us3.datadoghq.com](https://us3.datadoghq.com/).
1414
case us3
15+
/// US based servers.
16+
/// Sends data to [app.datadoghq.com](https://us5.datadoghq.com/).
17+
case us5
1518
/// Europe based servers.
16-
/// Sends logs to [app.datadoghq.eu](https://app.datadoghq.eu/).
19+
/// Sends data to [app.datadoghq.eu](https://app.datadoghq.eu/).
1720
case eu1
1821
/// Gov servers.
19-
/// Sends logs to [app.ddog-gov.com](https://app.ddog-gov.com/).
22+
/// Sends data to [app.ddog-gov.com](https://app.ddog-gov.com/).
2023
case us1_fed
2124
/// User-defined server.
2225
case custom(tracesURL: URL, logsURL: URL, metricsURL: URL)
@@ -33,6 +36,7 @@ public enum Endpoint {
3336
switch self {
3437
case .us1: return URL(string: "https://logs.browser-intake-datadoghq.com/" + endpoint)!
3538
case .us3: return URL(string: "https://logs.browser-intake-us3-datadoghq.com/" + endpoint)!
39+
case .us5: return URL(string: "https://logs.browser-intake-us5-datadoghq.com/" + endpoint)!
3640
case .eu1: return URL(string: "https://mobile-http-intake.logs.datadoghq.eu/" + endpoint)!
3741
case .us1_fed: return URL(string: "https://logs.browser-intake-ddog-gov.com/" + endpoint)!
3842
case let .custom(_, logsURL: logsUrl, _): return logsUrl
@@ -44,6 +48,7 @@ public enum Endpoint {
4448
switch self {
4549
case .us1: return URL(string: "https://trace.browser-intake-datadoghq.com/" + endpoint)!
4650
case .us3: return URL(string: "https://trace.browser-intake-us3-datadoghq.com/" + endpoint)!
51+
case .us5: return URL(string: "https://trace.browser-intake-us5-datadoghq.com/" + endpoint)!
4752
case .eu1: return URL(string: "https:/public-trace-http-intake.logs.datadoghq.eu/" + endpoint)!
4853
case .us1_fed: return URL(string: "https://trace.browser-intake-ddog-gov.com/" + endpoint)!
4954
case let .custom(tracesURL: tracesUrl, _, _): return tracesUrl
@@ -55,6 +60,7 @@ public enum Endpoint {
5560
switch self {
5661
case .us1: return URL(string: "https://api.datadoghq.com/" + endpoint)!
5762
case .us3: return URL(string: "https://api.us3.datadoghq.com/" + endpoint)!
63+
case .us5: return URL(string: "https://api.us5.datadoghq.com/" + endpoint)!
5864
case .eu1: return URL(string: "https://api.datadoghq.eu/" + endpoint)!
5965
case .us1_fed: return URL(string: "https://api.ddog-gov.com/" + endpoint)!
6066
case let .custom(_, _, metricsURL: metricsURL): return metricsURL

0 commit comments

Comments
 (0)