-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is PostgreSQL peer.address a JDBC string? #473
Comments
I believe the spec require to use a common (eg: jdbc) format: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/database.md#connection-level-attributes-for-specific-technologies |
In my reading, I don't see anything about peer.address (or net.peer.address). |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stale for 14 days with no activity. |
I still have this question. I don't see anything about peer.address in the standard. |
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:
This most likely also affects the mysql and mysql2 instrumentations |
Created #781 to address this |
Why? Do tools normally use JDBC URLs as an address?
All tools I know of, including psql, use the postgresql (or postgres) scheme.
The text was updated successfully, but these errors were encountered: