c6230be91e
feat(metrics): add OTLP metrics support with centralized config
...
- Create new metrics/ package for OpenTelemetry-native metrics with OTLP export
- Refactor OTLP configuration to internal/tracerconfig/ to eliminate code duplication
- Add consistent retry configuration across all HTTP OTLP exporters
- Add configuration validation and improved error messages
- Include test coverage for all new functionality
- Make OpenTelemetry metrics dependencies explicit in go.mod
Designed for new applications requiring structured metrics export to
observability backends via OTLP protocol.
2025-08-02 09:29:27 -07:00
96afb77844
database: create shared database package with configurable patterns
...
Extract ~200 lines of duplicate database connection code from api/ntpdb/
and monitor/ntpdb/ into common/database/ package. Creates foundation for
database consolidation while maintaining zero breaking changes.
Files added:
- config.go: Unified configuration with package-specific defaults
- connector.go: Dynamic connector pattern from Boostport
- pool.go: Configurable connection pool management
- metrics.go: Optional Prometheus metrics integration
- interfaces.go: Shared database interfaces for consistent patterns
Key features:
- Configuration-driven approach (API: 25/10 connections + metrics,
Monitor: 10/5 connections, no metrics)
- Optional Prometheus metrics when registerer provided
- Backward compatibility via convenience functions
- Flexible config file loading (explicit paths + search-based)
Dependencies: Added mysql driver and yaml parsing for database configuration.
2025-07-12 16:54:24 -07:00
e5836a8b97
depenv: ntppool configuration for deployment environments
2025-01-26 11:08:44 -08:00
9e2d6fb74e
Update dependencies
2024-12-27 18:39:48 -08:00
152be9d956
logger: otlp support
2024-11-09 10:59:11 +00:00
d6a77f4003
ekko: add gzip, move recover middleware to run early
2024-09-21 00:53:10 -07:00
3f3fb29bc9
ekko: helper to setup labstack echo with logging, tracing, etc
2024-09-20 21:47:10 -07:00
8e898d9c59
tracing: refactor code, support more exporters with default environment configuration
2024-09-14 00:47:07 -07:00
9a86b2aaf5
tracing: semconv v1.26.0
2024-07-06 13:04:48 -07:00
bcf7232154
Update dependencies + otel schema 1.25
2024-06-08 00:14:42 -07:00
9934dc8e36
Update Go, slog-otel, prometheus client
2024-04-06 09:42:41 -07:00
a458dcb226
tracing: add EndpointURL option
2024-03-16 10:40:43 -07:00
4ed44c72a4
Update dependencies
2024-03-09 21:57:46 -08:00
df2285d355
tracing: update semconv, better error checking
2024-01-19 22:59:29 -08:00
4f6b09200f
Update dependencies
2024-01-12 23:12:15 -08:00
537ee53384
Minor dependency updates
2023-11-26 01:15:04 -08:00
61d73f7be3
Update dependencies
2023-11-15 22:28:41 +08:00
5b033a1f0b
logging: use remychantenay/slog-otel
2023-10-21 22:09:48 -07:00
9d136b2502
logger: Add experimental support for adding trace_id from context
2023-10-21 21:51:29 -07:00
7420ad12f4
Update dependencies
2023-10-21 21:49:51 -07:00
6fd0728668
Update kafka-go
2023-10-14 03:31:30 -07:00
09f963b267
tracing: wip / test
2023-10-14 03:30:19 -07:00
ad63071f60
Update dependencies and goreleaser; require Go 1.21.3 for h2 fix
2023-10-11 22:03:38 -07:00
020966a4b3
Go 1.21; use log/slog instead of version from x/exp
2023-09-17 23:03:55 -07:00
3f1f4436df
metrics: have Registry() return a Registry instead of Registerer
...
(so it can also be used as a Gatherer)
2023-08-06 12:34:56 -07:00
6b6b22092e
metrics: allow server to return errors
2023-07-08 21:13:31 -07:00
7550d1597c
version: add more data to prometheus metric
2023-07-08 15:04:43 -07:00
a1e600e8ae
metricsserver: add helper for exporting prom metrics
...
(also from the monitor code)
2023-07-08 11:45:01 -07:00
57cfb90777
Kafka helper (from chgw)
2023-07-02 23:06:13 -07:00
cc6a6c0320
Add common logger helper
2023-07-01 19:57:36 -07:00
cf61f70d95
Start repository
2023-07-01 18:44:13 -07:00