in src/Elastic.OpenTelemetry/Extensions/ServiceCollectionExtensions.cs [112:130]
internal static IOpenTelemetryBuilder AddElasticOpenTelemetry(this IServiceCollection services, IConfiguration configuration, ElasticOpenTelemetryOptions options)
{
#if NET
ArgumentNullException.ThrowIfNull(services);
ArgumentNullException.ThrowIfNull(configuration);
ArgumentNullException.ThrowIfNull(options);
#else
if (services is null)
throw new ArgumentNullException(nameof(services));
if (configuration is null)
throw new ArgumentNullException(nameof(configuration));
if (options is null)
throw new ArgumentNullException(nameof(options));
#endif
return AddElasticOpenTelemetryCore(services, new(configuration, options));
}