SqlClientInstrumentationOptionsEnrich - свойство

Gets or sets an action to enrich an Activity with the raw SqlCommand object.

Definition

Пространство имён: Tessa.Web.OpenTelemetry.SqlClient
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
public Action<Activity, string, Object?>? Enrich { get; set; }

Значение свойства

ActionActivity, String, Object

Заметки

Enrich is only executed on .NET and .NET Core runtimes.

The parameters passed to the enrich action are:
  1. The Activity being enriched.
  2. The name of the event. Currently only "OnCustom" is used but more events may be added in the future.
  3. The raw SqlCommand object from which additional information can be extracted to enrich the Activity.

См. также