OpenTelemetrySemconvStabilityOptIn
This property sets whether ODP.NET OpenTelemetry traces use deprecated tags, new tags, or both sets of tags.
Declaration
// C#
public static string OpenTelemetrySemconvStabilityOptIn { get; set; }
Property Type
System.String
Valid Values
databasedatabase/dup- Any other value or no value (default)
Remarks
Values are case-insensitive, and leading or trailing whitespace is ignored. For example, “DATABASE” is equivalent to “database”.
The property can contain multiple comma-separated values. When multiple values are specified, the modes are resolved according to the following precedence:
database/dup- highest precedence; emits both new and deprecated tags.database- next highest precedence; emits new tags only.- Any other value - lowest precedence; emits deprecated tags only.
For example:
OracleConfiguration.OpenTelemetrySemconvStabilityOptIn =
"database, database/dup";
Because database/dup has the highest precedence, ODP.NET emits both new and deprecated tags.