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 also sets all specified hosts to send Datadog tracing headers.

For more information, see firstPartyHostsWithTracingHeaders.

Note: using this method will override any value set in firstPartHostsWithTracingHeaders. If you need to specify different headers per host, use that property instead.

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
    };
  }
}