[postgres, mysql, mysql2] Update database connection semantic conventions #781
Labels
never-stale
pkg:instrumentation-mysql
pkg:instrumentation-mysql2
pkg:instrumentation-pg
up-for-grabs
Good for taking. Extra help will be provided by maintainers
It appears it is just drastically outdated. The spec at the time of writing the postgres instrumentation was this: https://github.com/open-telemetry/opentelemetry-specification/blob/c8109895a989480028b282fa796ed87ad1421b8a/specification/data-database.md which specified the JDBC substring.
The recent spec is quite different and requires:
db.system
-postgresql
net.peer.name
ORnet.peer.ip
- hostname or ip respectivelynet.peer.port
only if using nonstandard portnet.transport
recommended in general, required only if using in-process - tcp or inprocdb.connection_string
is not required but seems to be the replacement for the jdbc string.This most likely also affects the mysql and mysql2 instrumentations
Originally posted by @dyladan in #473 (comment)
The text was updated successfully, but these errors were encountered: