Commit Graph

19 Commits

Author SHA1 Message Date
houseme c87e50b002 improve code for FileSink 2025-03-30 21:28:29 +08:00
houseme d516eec200 improve code for config and FileSink 2025-03-28 19:03:09 +08:00
houseme 2c8b9a8323 webhook add auth_token 2025-03-27 23:18:09 +08:00
houseme c4c6d439bc feat(obs): enhance OpenTelemetry configuration and logging
Improve observability setup with the following changes:

- Replace static OnceCell with tokio::sync::OnceCell for guard management
- Add logger_level to OtelConfig for configurable tracing verbosity
- Improve telemetry initialization with better error handling
- Enhance logging filters and span configuration

Breaking Changes:
- Configuration now requires logger_level field
- Global guard management uses async-safe primitives

Example config:
observability:
  endpoint: "http://localhost:4317"
  logger_level: "debug"  # New required field
2025-03-27 18:03:47 +08:00
houseme 64d87faaf3 feat: add metrics_handler 2025-03-26 16:59:34 +08:00
houseme 23ead0ea99 add prometheus 2025-03-26 15:18:23 +08:00
houseme 2b57af75ea upgrade opentelemetry create from 0.28.0 to 0.29.0 2025-03-25 19:02:52 +08:00
houseme 28a4a917d4 replace log to tracing 2025-03-19 22:34:26 +08:00
houseme 197ae72e93 improve code for observability 2025-03-18 22:57:26 +08:00
houseme c3ecfeae6c improve logger entry for Observability 2025-03-18 16:36:23 +08:00
houseme bcdd204fa0 improve log struct 2025-03-17 21:37:47 +08:00
houseme ef162396cf improve code 2025-03-16 16:33:52 +08:00
houseme c3ca7960e9 improve dependencies feature 2025-03-12 11:58:10 +08:00
houseme eaa506add5 improve code for observability 2025-03-12 00:46:01 +08:00
houseme bcab86fc38 rename rustfs-logging to rustfs-obs 2025-03-09 10:47:03 +08:00
houseme 5ca101b81c add 2025-02-27 19:00:47 +08:00
houseme b117281c58 improve code for audit 2025-02-23 16:38:41 +08:00
houseme c04536b132 feat(logging): add Kafka and Webhook audit targets
- Implemented `KafkaAuditTarget` to send audit entries to a Kafka topic.
- Implemented `WebhookAuditTarget` to send audit entries to a specified webhook URL.
- Updated `AuditLogger` to support multiple audit targets including Kafka and Webhook.
- Added examples and documentation for the new audit targets.
2025-02-21 18:49:25 +08:00
houseme 03589201fb Implement initialization for packages/logging
- Add initialization logic for the `rustfs-logging` crate.
- Provide examples for logging utilities.
- Include tests for logging and telemetry functionalities.
- Ensure proper configuration of dependencies in `Cargo.toml`.
2025-02-21 13:46:35 +08:00