Open KalleOlaviNiemitalo opened 6 months ago
FYI @open-telemetry/semconv-db-approvers
My interpretation is the login name, since it says accessing the database
. But I agree it needs better clarification.
Microsoft SQL Server also supports contained database authentication, which allows a client to log in as a database user that has a password, without needing a server-wide login at all. In this case, db.user
would have to be the database user name. Contained user access to contained databases - SQL Server | Microsoft Learn
hi @KalleOlaviNiemitalo, just a heads up we've deprecated db.user
for now, check out #885 for reasoning
Under Semantic Conventions for Database Client Calls,
db.user
is documented as:For Microsoft SQL Server, should this be the login name or the database user name? When an application connects to SQL Server, it sends the login name. Each database in SQL Server can then map the login to a database user. Server-wide permissions are granted to logins, but permissions on tables and other objects within a database are granted to database users or to their roles.
For telemetry purposes, the major differences are: