firstPartyHosts property

List<String> firstPartyHosts

A list of first party hosts, used in conjunction with Datadog network tracking packages like datadog_tracking_http_client

This property only affects network requests made from Flutter, and is not shared with or populated from existing the SDK.

Overwriting this property will overwrite DatadogAttachConfiguration.firstPartyHostsWithTracingHeaders

See DatadogConfiguration.firstPartyHosts for more information

Implementation

List<String> get firstPartyHosts =>
    firstPartyHostsWithTracingHeaders.keys.toList();
void firstPartyHosts=(List<String> hosts)

Implementation

set firstPartyHosts(List<String> hosts) {
  firstPartyHostsWithTracingHeaders.clear();
  for (var entry in hosts) {
    firstPartyHostsWithTracingHeaders[entry] = {
      TracingHeaderType.datadog,
      TracingHeaderType.tracecontext
    };
  }
}