Skip to content

feat: add support for disabling built-in metrics#539

Open
enocom wants to merge 1 commit intomainfrom
telemetry
Open

feat: add support for disabling built-in metrics#539
enocom wants to merge 1 commit intomainfrom
telemetry

Conversation

@enocom
Copy link
Copy Markdown
Member

@enocom enocom commented Mar 30, 2026

This commit adds the OpenTelemetry-based wiring to report on internal operations to improve connectivity. To disable this internal metric collection, set enable_builtin_telemetry to False when creating a Connector or AsyncConnector.

Note: the synchronous connector provides a full port of system metrics. The asynchronous connector by comparison cannot support bytes sent and bytes received because asyncpg doesn't provide a handle on the
underlying socket. If asyncpg accepts MagicStack/asyncpg#1313, we'll be able to
improve this situation.

Fixes #449.

@enocom enocom force-pushed the telemetry branch 4 times, most recently from 5ac6cf3 to c5b9ab5 Compare March 31, 2026 01:52
@enocom enocom marked this pull request as ready for review April 7, 2026 21:01
@enocom enocom requested a review from a team as a code owner April 7, 2026 21:01
@enocom
Copy link
Copy Markdown
Member Author

enocom commented Apr 7, 2026

I'll resolve these conflicts shortly here.

@enocom enocom marked this pull request as draft April 8, 2026 15:49
@enocom
Copy link
Copy Markdown
Member Author

enocom commented Apr 8, 2026

Putting back in draft while I sort out the build errors. This is ready for review now.

@enocom enocom assigned rhatgadkar-goog and unassigned nancynh Apr 9, 2026
@enocom enocom force-pushed the telemetry branch 4 times, most recently from b85e31f to a862a83 Compare April 9, 2026 02:56
@enocom enocom marked this pull request as ready for review April 9, 2026 03:00
This commit adds the OpenTelemetry-based wiring to report on internal
operations to improve connectivity. To disable this internal metric
collection, set enable_builtin_telemetry to False when creating a
Connetor or AsyncConnector.

Fixes #449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for system metrics

3 participants