Commit 2d88ee4
committed
feat(product-catalog): add DSN-derived attributes to DB telemetry
Extract connection attributes from the DSN (e.g. host, port) using
otelsql.AttributesFromDSN and include them alongside the existing
semconv.DBSystemNamePostgreSQL attribute on both spans and DB stats
metrics. Note: AttributesFromDSN does not yet extract db.namespace
(database name).
Co Authored By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1cdd4e0 commit 2d88ee4
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | | - | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | | - | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
0 commit comments