Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lemonn/sqlc-metrics-generator

Enrich the SQLC-Generated-Code with OpenTelemetrie metrics for InvocationCount, QuerryRuntime and ErrorCount. Queries are SHA256 Hashed and added as an attribute to the emitted metrics, to distinguish between query versions.
https://github.com/lemonn/sqlc-metrics-generator

code-generator go golang opentelemetry otel sqlc

Last synced: 21 days ago
JSON representation

Enrich the SQLC-Generated-Code with OpenTelemetrie metrics for InvocationCount, QuerryRuntime and ErrorCount. Queries are SHA256 Hashed and added as an attribute to the emitted metrics, to distinguish between query versions.

Awesome Lists containing this project

README

        

# SQLC-Metrics-Generator

Enriches the code generated by SQLC with metrics for CallCount, ErrorCount, and QueryRuntime. Each of the metrics
could be individually activated.

Additionally, it provides the option to create a convenience function that returns the underlying database connection.