feat: add 4 new crates (queue, tracing, http, cli) + enhancements to existing crates
New crates: - mytheclipse-queue: unified job queue with WorkerPool, retry/backoff, DLQ Backends: in-memory (default), Redis, NATS, PostgreSQL - mytheclipse-tracing: tracing subscriber layers with env filter + OTLP/Jaeger export - mytheclipse-http: HTTP client/server with timeout + tracing, axum server - mytheclipse-cli: CLI framework with clap derive, built-in subcommands Enhancements to existing crates: - mytheclipse-core: SemaphorePool, LeaderElection, HealthRegistry/HealthCheck - mytheclipse-cache: AutoRefreshCache (bg refresh on miss), CacheMetrics - mytheclipse-config: ConfigSchema for JSON Schema generation - mytheclipse-storage: MultipartUploadDriver trait - mytheclipse-crypto: PASETO v4.local token support All features compile with --all-features; tests + clippy pass clean.
This commit is contained in:
1 parent
2596b357ec
commit
8106f8943e
53 files changed
+3588
-44
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# mytheclipse-tracing
|
||||
|
||||
Pre-built tracing infrastructure for mytheclipse applications, wrapping
|
||||
[`tracing-subscriber`] with sensible defaults and optional OTLP/Jaeger/Zipkin
|
||||
export.
|
||||
|
||||
## Features
|
||||
|
||||
| Feature | Default | Description |
|
||||
| :--- | :---: | :--- |
|
||||
| `env` | yes | `tracing-subscriber` with `EnvFilter` support. |
|
||||
| `otel` | no | OpenTelemetry OTLP gRPC exporter. |
|
||||
| `jaeger` | no | Jaeger thrift over `tracing-flame`. |
|
||||
| `zipkin` | no | Zipkin exporter (stub — extend as needed). |
|
||||
| `full` | — | Enables `otel` + `jaeger`. |
|
||||
|
||||
## Usage
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
mytheclipse-tracing = "0.2"
|
||||
```
|
||||
|
||||
### Basic subscriber
|
||||
|
||||
```rust
|
||||
use mytheclipse_tracing::TracingLayer;
|
||||
|
||||
fn main() {
|
||||
TracingLayer::install();
|
||||
tracing::info!("hello, world!");
|
||||
}
|
||||
```
|
||||
|
||||
### With OTLP export
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
mytheclipse-tracing = { version = "0.2", features = ["otel"] }
|
||||
```
|
||||
|
||||
```rust
|
||||
use mytheclipse_tracing::TracingLayer;
|
||||
|
||||
fn main() {
|
||||
TracingLayer::install();
|
||||
// OTLP exporter defaults to http://localhost:4317
|
||||
tracing::info!("span data sent to OTLP collector");
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user