// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using Microsoft.Shared.Diagnostics; namespace Microsoft.Extensions.DataIngestion; #pragma warning disable SA1500 // Braces for multi-line statements should not share line #pragma warning disable SA1513 // Closing brace should be followed by blank line /// /// Options for configuring the ingestion pipeline. /// public sealed class IngestionPipelineOptions { /// /// Gets or sets the name of the used for diagnostics. /// public string ActivitySourceName { get; set => field = Throw.IfNullOrEmpty(value); } = DiagnosticsConstants.ActivitySourceName; internal IngestionPipelineOptions Clone() => new() { ActivitySourceName = ActivitySourceName, }; }