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: 4 months 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 (6 months ago)
- Default Branch: master
- Last Pushed: 2025-01-07T18:19:05.000Z (6 months ago)
- Last Synced: 2025-02-23T03:43:17.839Z (4 months ago)
- Topics: code-generator, go, golang, opentelemetry, otel, sqlc
- Language: Go
- Homepage:
- Size: 9.77 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.