SqlClientTraceInstrumentationOptionsEnableConnectionLevelAttributes - свойство

Gets or sets a value indicating whether or not the SqlClientInstrumentation should parse the DataSource on a SqlConnection into server name, instance name, and/or port connection-level attribute tags. Default value: .

Definition

Пространство имён: Tessa.Web.OpenTelemetry.SqlClient
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public bool EnableConnectionLevelAttributes { get; set; }

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

Boolean

Заметки

EnableConnectionLevelAttributes is supported on all runtimes.

If enabled, SqlConnection DataSource will be parsed and the server name will be sent as the AttributeServerAddress tag, the instance name will be sent as the AttributeDbMsSqlInstanceName tag, and the port will be sent as the AttributeServerPort tag if it is not 1433 (the default port).

См. также