firstPartyHostsWithTracingHeaders property
A list of first party hosts and the types of tracing headers Datadog
should automatically inject on resource calls. This is used in conjunction
with Datadog network tracking packages like datadog_tracking_http_client
For more information about tracing headers, see TracingHeaderType.
Each request will be classified as 1st- or 3rd-party based on the host comparison, i.e.:
- if
firstPartyHosts
is["example.com"]
:- 1st-party URL examples: https://example.com/, https://api.example.com/v2/users
- 3rd-party URL examples: https://foo.com/, https://example.net
- if
firstPartyHosts
is["api.example.com"]
:- 1st-party URL examples: https://api.example.com/, https://api.example.com/v2/users, https://beta.api.example.com/v2/users
- 3rd-party URL examples: https://example.com/, https://foo.com/, https://api.example.net/v3/users
Implementation
Map<String, Set<TracingHeaderType>> firstPartyHostsWithTracingHeaders = {};