forked from dotnet/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIngestionPipelineOptions.cs
More file actions
30 lines (25 loc) · 951 Bytes
/
IngestionPipelineOptions.cs
File metadata and controls
30 lines (25 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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
/// <summary>
/// Options for configuring the ingestion pipeline.
/// </summary>
public sealed class IngestionPipelineOptions
{
/// <summary>
/// Gets or sets the name of the <see cref="ActivitySource"/> used for diagnostics.
/// </summary>
public string ActivitySourceName
{
get;
set => field = Throw.IfNullOrEmpty(value);
} = DiagnosticsConstants.ActivitySourceName;
internal IngestionPipelineOptions Clone() => new()
{
ActivitySourceName = ActivitySourceName,
};
}