Class CloudStorageOrmObservabilityOptions
- Namespace
- CloudStorageORM.Observability
- Assembly
- CloudStorageORM.dll
Configuration options for CloudStorageORM observability features including logging, tracing, and diagnostics.
public class CloudStorageOrmObservabilityOptions
- Inheritance
-
CloudStorageOrmObservabilityOptions
- Inherited Members
Properties
ActivitySourceName
Gets or sets the custom source name for ActivitySource instrumentation. If not set, defaults to "CloudStorageORM".
public string? ActivitySourceName { get; set; }
Property Value
DiagnosticListenerName
Gets or sets the custom diagnostic listener name. If not set, defaults to "CloudStorageORM".
public string? DiagnosticListenerName { get; set; }
Property Value
EnableDiagnostics
Gets or sets a value indicating whether to enable diagnostic events via DiagnosticListener. Default: true.
public bool EnableDiagnostics { get; set; }
Property Value
EnableLogging
Gets or sets a value indicating whether to enable structured logging for database operations. Default: true.
public bool EnableLogging { get; set; }
Property Value
EnableTracing
Gets or sets a value indicating whether to enable distributed tracing via ActivitySource. Default: true.
public bool EnableTracing { get; set; }
Property Value
Methods
GetActivitySourceName()
Gets the effective activity source name.
public string GetActivitySourceName()
Returns
- string
Custom name if set, otherwise default "CloudStorageORM".
GetDiagnosticListenerName()
Gets the effective diagnostic listener name.
public string GetDiagnosticListenerName()
Returns
- string
Custom name if set, otherwise default "CloudStorageORM".