Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lemonn/sqlc-metrics-generator
- Owner: Lemonn
- License: mit
- Created: 2025-01-02T20:24:17.000Z (22 days ago)
- Default Branch: master
- Last Pushed: 2025-01-02T21:43:23.000Z (22 days ago)
- Last Synced: 2025-01-02T22:30:15.568Z (22 days ago)
- Topics: code-generator, go, golang, opentelemetry, otel, sqlc
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.