11 Commits

Author SHA1 Message Date
9dadd9edc3 feat(version): add Unix epoch support for buildTime
Support both Unix epoch timestamps and RFC3339 format for build time
injection via ldflags. Unix epoch format provides simpler build
commands: $(date +%s) vs $(date -u +%Y-%m-%dT%H:%M:%SZ).

- Add parseBuildTime() to convert epoch to RFC3339
- Maintain backward compatibility with existing RFC3339 format
- Ensure consistent RFC3339 output regardless of input format
- Fix build date priority over git commit time
2025-08-02 10:16:41 -07:00
09b52f92d7 version: add documentation and tests 2025-06-06 20:19:08 -07:00
0996167865 modernize + gofumpt 2025-04-19 22:19:02 -07:00
87344dd601 version: KongVersionCmd type 2025-04-12 00:24:19 -07:00
152be9d956 logger: otlp support 2024-11-09 10:59:11 +00:00
1ecd5684e6 version: Add CheckVersion() function 2024-08-18 18:11:17 -07:00
1e8785bd32 version: fix metric name for services with dash in the name 2024-02-03 00:21:31 -08:00
5c067e3752 version: Prefix build_info metric name 2023-07-08 15:56:57 -07:00
7550d1597c version: add more data to prometheus metric 2023-07-08 15:04:43 -07:00
cca1240a65 version: change prom metric to have separate label with build time 2023-07-08 13:09:37 -07:00
ebd0695862 Add version package 2023-07-08 12:32:49 -07:00