Commit Graph

116 Commits

Author SHA1 Message Date
houseme 7926ac015a improve code for tracing log 2025-04-24 19:14:46 +08:00
houseme 86353d98d5 feat: add TraceLayer for HTTP service and improve metrics (#361)
* improve code for opentelemetry and add system metrics

* feat: add TraceLayer for HTTP service and improve metrics

- Add TraceLayer to HTTP server for request tracing
- Implement system metrics for process monitoring
- Optimize init_telemetry method for better resource management
- Add graceful shutdown handling for telemetry components
- Fix GracefulShutdown ownership issues with Arc wrapper

* improve code for init_process_observer

* remove tomlfmt.toml

* Translation comment

* improve code for console CompressionLayer params
2025-04-24 19:04:57 +08:00
houseme 4f347a92c1 feat: integrate event-notifier system with rustfs
- Rename package from rustfs-event-notifier to event-notifier for consistency
- Add shutdown hooks for event notification system in main process
- Handle graceful termination of notification services on server shutdown
- Implement initialization and configuration loading for event notification
- Fix environment variable configuration to properly parse adapter arrays
- Update example code to demonstrate proper configuration usage

This change ensures proper integration between rustfs and the event
notification system, with clean startup and shutdown sequences to prevent
resource leaks during application lifecycle.
2025-04-22 20:49:39 +08:00
weisd 9dfb8f8dcf Merge branch 'main' into dada/decom 2025-04-18 16:02:05 +08:00
weisd f624ec5ba6 feat:decom,rebalance 2025-04-18 16:00:21 +08:00
Nugine 69598b48e3 feat(rustfs/main): use jemalloc 2025-04-16 11:59:08 +08:00
Nugine 04874f5986 feat(rustfs/main): set TCP_NODELAY 2025-04-15 19:36:34 +08:00
weisd c40099a636 fix config_handler 2025-04-13 23:52:52 +08:00
houseme c651bea903 Fix/fix domain server (#319)
* fix: server_domain and improve code for tls

* add log

* add tracing

* test

* improve config and tls

* Update rustfs/src/console.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-13 12:55:56 +08:00
houseme 24d6c555f7 Remove unused crate 2025-04-11 17:38:44 +08:00
houseme 42c8890d4a Merge branch 'main' of github.com:rustfs/s3-rustfs into feature/Systemd.service 2025-04-11 16:48:46 +08:00
houseme ab8b19eb5d improve signal watch 2025-04-11 16:48:07 +08:00
Nugine 1b24fbdb00 fix: upgrade s3s 2025-04-11 16:01:46 +08:00
houseme 6d31834799 fix 2025-04-10 00:43:55 +08:00
houseme 10b787b852 improve code for signal 2025-04-10 00:38:17 +08:00
houseme dc61d07206 improve code 2025-04-09 23:45:53 +08:00
houseme f48d8fc65e Update rustfs/src/main.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-09 19:15:49 +08:00
houseme 952f04149f add notify systemd 2025-04-09 19:11:31 +08:00
weisd d29bfcca9a cache license 2025-04-08 22:32:24 +08:00
weisd 885944802a license api 2025-04-08 22:32:21 +08:00
houseme 0c7748658c Merge main branches 2025-04-02 15:57:11 +08:00
houseme d017409f5b add rustfs tls 2025-04-02 00:48:08 +08:00
houseme 28edca1b63 add rustls 2025-04-01 23:09:47 +08:00
houseme 1994302574 improve tls for console 2025-04-01 22:06:47 +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 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 f1c6f276e6 improve code for main 2025-03-18 19:04:00 +08:00
houseme b3339c258f Merge branch 'main' of github.com:rustfs/s3-rustfs into feature/observability
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2025-03-18 16:51:25 +08:00
houseme 4795638763 feat(observability): add obs_config option and document stdout export
- Add obs_config parameter to config struct with default path
- Document how to modify use_stdout value in README.md
- Support configuring observability via file or environment variables

This change helps users configure telemetry output destination for better
observability options in different deployment scenarios.
2025-03-18 16:39:18 +08:00
houseme ef162396cf improve code 2025-03-16 16:33:52 +08:00
weisd 01cf4c663d opt network io 2025-03-14 23:26:54 +08:00
weisd 70031effa7 use http for remote read/write 2025-03-11 16:12:34 +08:00
houseme 4b4dbab1ae Merge branch 'main' of github.com:rustfs/s3-rustfs into feature/logger 2025-03-09 10:47:26 +08:00
weisd b821533b19 fix:#254 use console host for s3 host 2025-03-07 00:21:17 +08:00
houseme 4ecb53c526 Merge branch 'main' of github.com:rustfs/s3-rustfs into feature/logger
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	rustfs/src/main.rs
2025-03-06 16:54:17 +08:00
Damonxue 5e226f6581 refactor: clean up unused imports and simplify conditional statement in main.rs 2025-03-03 14:40:07 +08:00
DamonXue aa4bff263b refactor: simplify logging statements in console.rs and main.rs 2025-03-02 22:29:11 +08:00
DamonXue c10d723c6d refactor: remove proc-macro support and replace timed_println with tracing info logs 2025-03-02 22:27:15 +08:00
DamonXue cdd7a6d753 feat: enhance tracing setup with pretty formatting and enable file/line number logging 2025-03-02 21:48:43 +08:00
DamonXue f2929fd2ee style: format code for consistency and readability 2025-03-02 20:06:45 +08:00
DamonXue 145bb6ac7c feat: add proc-macro support for timed logging and update console output 2025-03-02 19:43:47 +08:00
DamonXue 7e59bfa877 feat: add chrono dependency and enhance console configuration with documentation and version info 2025-03-02 18:53:48 +08:00
DamonXue 79eabe4e4c feat: add local IP address retrieval and update console address default 2025-03-02 17:40:36 +08:00
houseme dab937d241 Merge branch 'main' of github.com:rustfs/s3-rustfs into feature/logger
# Conflicts:
#	Cargo.toml
2025-02-27 19:03:32 +08:00
weisd 3b56bb69e6 add s3s host style 2025-02-26 17:38:39 +08:00
weisd c07d165ceb fix admin api bugs 2025-02-24 11:15:50 +08:00
weisd 19d897a40b fix service account action, add console config api 2025-02-23 15:06:13 +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