OpenTelemetryImageGenerator.EnableSensitiveData Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 metadata, such as token counts, but not raw inputs and outputs, such as message content, function call arguments, and function call results. 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.