-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into server.port-always
- Loading branch information
Showing
13 changed files
with
149 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using System.Diagnostics; | ||
using OpenTelemetry.Internal; | ||
|
||
namespace OpenTelemetry.Trace; | ||
|
||
/// <summary> | ||
/// Options for configuring either a <see cref="SimpleActivityExportProcessor"/> or <see cref="BatchActivityExportProcessor"/>. | ||
/// </summary> | ||
public class ActivityExportProcessorOptions | ||
{ | ||
private BatchExportActivityProcessorOptions batchExportProcessorOptions; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ActivityExportProcessorOptions"/> class. | ||
/// </summary> | ||
public ActivityExportProcessorOptions() | ||
: this(new()) | ||
{ | ||
} | ||
|
||
internal ActivityExportProcessorOptions( | ||
BatchExportActivityProcessorOptions defaultBatchExportActivityProcessorOptions) | ||
{ | ||
Debug.Assert(defaultBatchExportActivityProcessorOptions != null, "defaultBatchExportActivityProcessorOptions was null"); | ||
|
||
this.batchExportProcessorOptions = defaultBatchExportActivityProcessorOptions ?? new(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the export processor type to be used. The default value is <see cref="ExportProcessorType.Batch"/>. | ||
/// </summary> | ||
public ExportProcessorType ExportProcessorType { get; set; } = ExportProcessorType.Batch; | ||
|
||
/// <summary> | ||
/// Gets or sets the batch export options. Ignored unless <see cref="ExportProcessorType"/> is <see cref="ExportProcessorType.Batch"/>. | ||
/// </summary> | ||
public BatchExportActivityProcessorOptions BatchExportProcessorOptions | ||
{ | ||
get => this.batchExportProcessorOptions; | ||
set | ||
{ | ||
Guard.ThrowIfNull(value); | ||
this.batchExportProcessorOptions = value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.