mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 23:33:47 +01:00
* Update aspire to 13.1 (examples + code) Allows usage of aspire CLI which is very useful for dev in codespaces (for my next PR). * Add OTEL support * Initial PR feedback * PR feedback * PR feedback * PR feedback * Cleanup. * Cleanup * Fix * Fix * Rename stuff around to be more accurate * PR feedback * Update WireMock.Net.OpenTelemetry.csproj Update <Authors> * PR feedback parser * PR feedback package versions * Status code feedback. * Update preprocessor directives to to Activity Tracing instead of OpenTelemetry. Is more descriptive. * Add tests * Improve tests --------- Co-authored-by: Stef Heyenrath <Stef.Heyenrath@gmail.com>
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
#if ACTIVITY_TRACING_SUPPORTED
|
|
|
|
namespace WireMock.Owin.ActivityTracing;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public class ActivityTracingOptions
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to exclude admin interface requests from tracing.
|
|
/// Default is <c>true</c>.
|
|
/// </summary>
|
|
public bool ExcludeAdminRequests { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to record request body in trace attributes.
|
|
/// Default is <c>false</c> due to potential PII concerns.
|
|
/// </summary>
|
|
public bool RecordRequestBody { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to record response body in trace attributes.
|
|
/// Default is <c>false</c> due to potential PII concerns.
|
|
/// </summary>
|
|
public bool RecordResponseBody { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to record mapping match details in trace attributes.
|
|
/// Default is <c>true</c>.
|
|
/// </summary>
|
|
public bool RecordMatchDetails { get; set; } = true;
|
|
}
|
|
#endif
|