OracleDataProviderInstrumentationOptions Properties

OracleDataProviderInstrumentationOptions properties are listed in Table 18-1.

Table 1 OracleDataProviderInstrumentationOptions Properties

Method Description
AddDBInfoToDisplayName Indicates whether or not to record Host, Port and database name with Displayname
EnableConnectionLevelAttributes Indicates whether ODP.NET adds connection-related attributes to OpenTelemetry activities
EnableDBRoundTripTracing Allows creating child spans that encapsulate the database roundtrips for parent spans in public APIs likeOracleCommand.ExecuteNonQuery(), OracleDataReader.Read(), and OracleDataAdapter.Fill
EnableOpenCloseTracing Indicates whether to record database soft and hard connection/disconnection instrumentation or not
EnableSqlIdTracing Enables SQL identifier instrumentation of each executed SQL statement
InstrumentOracleDataReaderRead Indicates whether or not to instrument OracleDataReader Read method calls
RecordException Indicates whether or not to record exception details in instrumentation
RequireApplicationRootSpanCreation Controls whether ODP.NET instruments only those operations that are associated with root spans created by the application or not
SetDbStatementForStoredProcedure Indicates whether or not to instrument stored procedure and function names when the command type is for a stored procedure (CommandType.StoredProcedure)
SetDbStatementForText Indicates whether or not to instrument SQL queries when command type is of Text type (CommandType.Text)

See Also: