OptionalconfigAgent/service settings beneath the tracing config: a DatadogApmConfig (used as is) or options merged over the environment.
OptionaldefaultsService defaults: endpoint, protocol, headers, …
OptionalenvEnvironment for DatadogApmConfig.fromEnv; default process.env, false ignores it.
OptionalidCustom id generator (tests).
OptionalpropagatorsExtra propagators the service package supports, by name (e.g. datadog).
OptionalsamplerSampler that replaces the one built from config.sampler/samplerRatio (e.g. a remote
sampler such as Jaeger's). config.sampler is still validated and reported in toString().
OptionalspanExtra span processors added after the batch processor.
Options of initTracing.