Skip to content

Commit

Permalink
explicitly call out that target should not be set if data is not avai…
Browse files Browse the repository at this point in the history
…lable. Add example
  • Loading branch information
lmolkova committed May 24, 2024
1 parent e8b9682 commit fca4393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/database/database-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ and SHOULD adhere to one of the following values, provided they are accessible:
- `db.namespace` SHOULD be used only for operations on a specific database namespace.
- `server.address:server.port` SHOULD be used for other operations not targeting any specific database(s) or collection(s)

If a corresponding `{target}` value is not available for a specific operation, the instrumentation SHOULD NOT populate `{target}`.
For example, for an operation describing SQL query on an anonymous table `SELECT * FROM (VALUES 'a', 'b', 'c') AS t (name)`, span name should be `SELECT`.

## Common attributes

These attributes will usually be the same for all operations performed over the same database connection.
Expand Down

0 comments on commit fca4393

Please sign in to comment.