- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
The RUM Mobile SDKs can be configured to send requests through a proxy.
Proxies use OkHttpClient Proxy and Authenticator on Android and URLSessionConfiguration.connectionProxyDictionary on iOS.
To successfully forward a request to Datadog, your proxy must support HTTP CONNECT requests.
When initializing the Android SDK, specify the following proxy configuration:
val configBuilder = Configuration.Builder(
clientToken = "<client token>",
env = "<environment>"
)
val proxy = Proxy(Proxy.Type.HTTP, InetSocketAddress("<www.example.com>", <123>))
val authenticator = ProxyAuthenticator("<proxy user>", "<proxy password>")
configBuilder.setProxy(proxy, authenticator)
For more information, see the OkHttpClient Proxy and Authenticator documentation.
When initializing the iOS SDK, specify the following proxy configuration:
import DatadogCore
Datadog.initialize(
with: Datadog.Configuration(
clientToken: "<client token>",
env: "<environment>",
proxyConfiguration: [
kCFNetworkProxiesHTTPEnable: true,
kCFNetworkProxiesHTTPPort: <123>,
kCFNetworkProxiesHTTPProxy: "<www.example.com>",
kCFProxyUsernameKey: "<proxy user>",
kCFProxyPasswordKey: "<proxy password>"
]
),
trackingConsent: trackingConsent
)
@import DatadogObjc;
DDConfiguration *configuration = [[DDConfiguration alloc] initWithClientToken:@"<client token>" env:@"<environment>"];
configuration.proxyConfiguration = @{
(NSString *)kCFNetworkProxiesHTTPEnable: @YES,
(NSString *)kCFNetworkProxiesHTTPPort: @<123>,
(NSString *)kCFNetworkProxiesHTTPProxy: @"<www.example.com>",
(NSString *)kCFProxyUsernameKey: @"<proxyuser>",
(NSString *)kCFProxyPasswordKey: @"<proxypass>"
};
[DDDatadog initializeWithConfiguration:configuration
trackingConsent:trackingConsent];
For more information, see the URLSessionConfiguration.connectionProxyDictionary documentation.
When initializing the React Native SDK, specify the following proxy configuration:
import { DatadogProviderConfiguration, ProxyConfiguration, ProxyType } from '@datadog/mobile-react-native';
const config = new DatadogProviderConfiguration('<client token>', '<environment>', '<application id>');
config.proxyConfig = new ProxyConfiguration(ProxyType.HTTPS, '<www.example.com>', <123>, '<proxy user>', '<proxy password>');
To successfully forward a request to Datadog, your proxy must support SOCKS5 proxying.
When initializing the Android SDK, specify the following proxy configuration:
val configBuilder = Configuration.Builder(
clientToken = "<client token>",
env = "<environment>"
)
val proxy = Proxy(Proxy.Type.SOCKS, InetSocketAddress("<www.example.com>", <123>))
val authenticator = ProxyAuthenticator("<proxy user>", "<proxy password>")
configBuilder.setProxy(proxy, authenticator)
For more information, see the OkHttpClient Proxy and Authenticator documentation.
When initializing the iOS SDK, specify the following proxy configuration:
import DatadogCore
Datadog.initialize(
with: Datadog.Configuration(
clientToken: "<client token>",
env: "<environment>",
proxyConfiguration: [
kCFNetworkProxiesSOCKSEnable: true,
kCFNetworkProxiesSOCKSPort: <123>,
kCFNetworkProxiesSOCKSProxy: "<www.example.com>",
kCFProxyUsernameKey: "<proxy user>",
kCFProxyPasswordKey: "<proxy password>"
]
),
trackingConsent: trackingConsent
)
@import DatadogObjc;
DDConfiguration *configuration = [[DDConfiguration alloc] initWithClientToken:@"<client token>" env:@"<environment>"];
configuration.proxyConfiguration = @{
(NSString *)kCFNetworkProxiesSOCKSEnable: @YES,
(NSString *)kCFNetworkProxiesSOCKSPort: @<123>,
(NSString *)kCFNetworkProxiesSOCKSProxy: @"<www.example.com>",
(NSString *)kCFProxyUsernameKey: @"<proxyuser>",
(NSString *)kCFProxyPasswordKey: @"<proxypass>"
};
[DDDatadog initializeWithConfiguration:configuration
trackingConsent:trackingConsent];
For more information, see the URLSessionConfiguration.connectionProxyDictionary documentation.
When initializing the React Native SDK, specify the following proxy configuration:
import { DatadogProviderConfiguration, ProxyConfiguration, ProxyType } from '@datadog/mobile-react-native';
const config = new DatadogProviderConfiguration('<client token>', '<environment>', '<application id>');
config.proxyConfig = new ProxyConfiguration(ProxyType.SOCKS, '<www.example.com>', <123>, '<proxy user>', '<proxy password>');
추가 유용한 문서, 링크 및 기사: