Skip to content

Commit 4781900

Browse files
committed
Set db.namespace attribute on spans from connection database name
The semantic conventions mark db.namespace as Conditionally Required when available. The connection's Database property is used as the value.
1 parent c198a6a commit 4781900

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/FirebirdSql.Data.FirebirdClient/Trace/FbActivitySource.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ internal static Activity CommandStart(FbCommand command)
5252
}
5353

5454
// db.namespace
55+
if (dbName != null)
56+
{
57+
activity.SetTag("db.namespace", dbName);
58+
}
5559

5660
if (dbOperationName != null)
5761
{

0 commit comments

Comments
 (0)