InMemoryOpenTelemetryHandlerOptions Class
Configures how many received items InMemoryOpenTelemetryHandler keeps.
public sealed class InMemoryOpenTelemetryHandlerOptionsRemarks
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
| Name | Description |
|---|---|
| InMemoryOpenTelemetryHandlerOptions() |
InMemoryOpenTelemetryHandlerOptions()
InMemoryOpenTelemetryHandlerOptions.cspublic InMemoryOpenTelemetryHandlerOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| MaximumLogCount | Gets or sets the number of log export requests to keep. Defaults to Int32.MaxValue, which keeps all of them. |
| MaximumMetricCount | Gets or sets the number of metric export requests to keep. Defaults to Int32.MaxValue, which keeps all of them. |
| MaximumTraceCount | Gets or sets the number of trace export requests to keep. Defaults to Int32.MaxValue, which keeps all of them. |
MaximumLogCount
InMemoryOpenTelemetryHandlerOptions.csGets 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
MaximumMetricCount
InMemoryOpenTelemetryHandlerOptions.csGets 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
MaximumTraceCount
InMemoryOpenTelemetryHandlerOptions.csGets or sets the number of trace export requests to keep. Defaults to Int32.MaxValue, which keeps all of them.
public int MaximumTraceCount { get; set; }