DatabaseOpenTelemetryTracing

This property enables database OpenTelemetry span instrumentation for ODP.NET public APIs that perform a database round-trip.

Declaration

// C#
public static bool DatabaseOpenTelemetryTracing { get; set; }

Property Type

Bool

Remarks

Default value is false.

When this property is set to true, the ODP.NET span context from the application is propagated to the database server. If ODP.NET spans are not enabled, then the currently active OpenTelemetry span context initiated by the application is propagated to the database instead.