Commit ec9bece
test(otel): complete renamed-attribute coverage for DB semantics (collection.name, server.port)
Add the two remaining renamed-attribute tests so the DB suite covers the full set of
Datadog->OTel renames per the spec:
db.sql.table -> db.collection.name
out.port -> server.port (validated as int when present)
The suite now has 7 rename tests (db.system.name, db.namespace, db.operation.name,
db.query.text, db.collection.name, server.address, server.port). Only rename tests are
included because the scenario is gated missing_feature everywhere (no tracer implements DB
OTel yet) — unchanged/shared attributes like span.kind and error.type would xpass, so they
belong in the OTLP-typed variant / when-active coverage instead.
ruff + Manifest.validate() + meta-tests green; 7 tests collect under OTEL_SEMANTICS_DB.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1b2b89d commit ec9bece
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
0 commit comments