// Copyright © WireMock.Net #if ACTIVITY_TRACING_SUPPORTED namespace WireMock.Owin.ActivityTracing; /// /// Options for controlling activity tracing in WireMock.Net middleware. /// These options control the creation of System.Diagnostics.Activity objects /// but do not require any OpenTelemetry exporter dependencies. /// public class ActivityTracingOptions { /// /// Gets or sets a value indicating whether to exclude admin interface requests from tracing. /// Default is true. /// public bool ExcludeAdminRequests { get; set; } = true; /// /// Gets or sets a value indicating whether to record request body in trace attributes. /// Default is false due to potential PII concerns. /// public bool RecordRequestBody { get; set; } /// /// Gets or sets a value indicating whether to record response body in trace attributes. /// Default is false due to potential PII concerns. /// public bool RecordResponseBody { get; set; } /// /// Gets or sets a value indicating whether to record mapping match details in trace attributes. /// Default is true. /// public bool RecordMatchDetails { get; set; } = true; } #endif