InMemoryOpenTelemetryHandlerOptions Class

Configures how many received items InMemoryOpenTelemetryHandler keeps.

public sealed class InMemoryOpenTelemetryHandlerOptions

Remarks

Every limit defaults to Int32.MaxValue, which means nothing is ever evicted and each received export request is retained in full. That default suits a test that asserts on everything an application exported, but a long running process must set explicit limits: once a limit is set, the oldest items are overwritten.

Constructors

NameDescription
InMemoryOpenTelemetryHandlerOptions()

InMemoryOpenTelemetryHandlerOptions()

InMemoryOpenTelemetryHandlerOptions.cs
public InMemoryOpenTelemetryHandlerOptions()

No documentation is available.

Properties

NameDescription
MaximumLogCountGets or sets the number of log export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.
MaximumMetricCountGets or sets the number of metric export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.
MaximumTraceCountGets or sets the number of trace export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.

Gets or sets the number of log export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.

public int MaximumLogCount { get; set; }

Property value

int

Gets or sets the number of metric export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.

public int MaximumMetricCount { get; set; }

Property value

int

Gets or sets the number of trace export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.

public int MaximumTraceCount { get; set; }

Property value

int