SqlClientInstrumentationOptions - класс

Options for SqlClientInstrumentation.

Definition

Пространство имён: Tessa.Web.OpenTelemetry.SqlClient
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
public class SqlClientInstrumentationOptions
Inheritance
Object    SqlClientInstrumentationOptions

Заметки

For help and examples see: .

Конструкторы

SqlClientInstrumentationOptions Initializes a new instance of the SqlClientInstrumentationOptions class.

Свойства

EnableConnectionLevelAttributes 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: .
Enrich Gets or sets an action to enrich an Activity with the raw SqlCommand object.
Filter Gets or sets a filter function that determines whether or not to collect telemetry about a command.
RecordException Gets or sets a value indicating whether the exception will be recorded as ActivityEvent or not. Default value: .
SetDbStatementForStoredProcedure Gets or sets a value indicating whether or not the SqlClientInstrumentation should add the names of StoredProcedure commands as the AttributeDbStatement tag. Default value: .
SetDbStatementForText Gets or sets a value indicating whether or not the SqlClientInstrumentation should add the text of commands as the AttributeDbStatement tag. Default value: .

Методы

EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
ToStringReturns a string that represents the current object.
(Унаследован от Object)

Методы расширения

Get
(Определяется ComHelper)
Invoke
(Определяется ComHelper)
Set
(Определяется ComHelper)

См. также