DataDog / dd-sdk-flutter

Flutter bindings and tools for utilizing Datadog Mobile SDKs
Apache License 2.0
43 stars 42 forks source link

the two parameters "proxy" and "customEndpoint" are equivalent, but why the different names? #625

Closed magiepooh closed 3 months ago

magiepooh commented 3 months ago

Question

I think the two parameters "proxy" and "customEndpoint" are equivalent, but why the different names? https://docs.datadoghq.com/ja/real_user_monitoring/guide/proxy-rum-data/?tab=npm

In FlutterSDK you just pass the value. https://github.com/DataDog/dd-sdk-flutter/blob/a5657fe3aa7a944b2849de9f93be4936d5689833/packages/datadog_flutter_plugin/lib/src/logs/ddlogs_web.dart#L24

Is it possible to unify these names?

fuzzybinary commented 3 months ago

Hi @magiepooh,

For un-authenticated proxies, they will act the same. For proxies that require authentication or additional options, the customEndpoint won't be configurable enough, and it's mostly used internally for testing and debugging.

The iOS and Android SDKs offer separate properties for Proxy configuration which are, unfortunately, not currently exposed to the Flutter SDK (see this on iOS and this on Android)

If you have need of these methods because customEndpoint is insufficiently configurable, please open another issue as a feature request.

Thanks!