Del via


OpenTelemetryHostedFileClient.EnableSensitiveData Property

Definition

Gets or sets a value indicating whether potentially sensitive information should be included in telemetry.

public:
 property bool EnableSensitiveData { bool get(); void set(bool value); };
public bool EnableSensitiveData { get; set; }
member this.EnableSensitiveData : bool with get, set
Public Property EnableSensitiveData As Boolean

Property Value

true if potentially sensitive information should be included in telemetry; false if telemetry shouldn't include raw inputs and outputs. The default value is false, unless the OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT environment variable is set to "true" (case-insensitive).

Remarks

By default, telemetry includes operation metadata such as provider name, duration, file IDs, file sizes, media types, purposes, and scopes.

When enabled, telemetry will additionally include file names, which may contain sensitive information.

The default value can be overridden by setting the OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT environment variable to "true". Explicitly setting this property will override the environment variable.

Applies to