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:
@@ -0,0 +1,37 @@
|
||||
[package]
|
||||
name = "mytheclipse-tracing"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.75"
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/asepharyana/mytheclipse"
|
||||
homepage = "https://github.com/asepharyana/mytheclipse"
|
||||
documentation = "https://docs.rs/mytheclipse-tracing"
|
||||
authors = ["asepharyana <superaseph@gmail.com>"]
|
||||
description = "Pre-built tracing layers for mytheclipse applications with OTLP/Jaeger/Zipkin export support."
|
||||
readme = "README.md"
|
||||
keywords = ["tracing", "opentelemetry", "jaeger", "zipkin", "telemetry"]
|
||||
categories = ["development-tools::debugging", "development-tools::profiling"]
|
||||
|
||||
[features]
|
||||
default = ["env"]
|
||||
# Standard formatting subscriber with optional coloring.
|
||||
env = ["dep:tracing-subscriber"]
|
||||
# OpenTelemetry OTLP exporter.
|
||||
otel = ["dep:tracing-subscriber", "dep:opentelemetry", "dep:tracing-opentelemetry"]
|
||||
# Jaeger thrift over UDP exporter.
|
||||
jaeger = ["dep:tracing-subscriber", "dep:tracing-flame"]
|
||||
# Zipkin exporter.
|
||||
zipkin = ["dep:tracing-subscriber"]
|
||||
# Full stack: otel + jaeger.
|
||||
full = ["otel", "jaeger"]
|
||||
|
||||
[dependencies]
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "std"], optional = true }
|
||||
opentelemetry = { version = "0.25", default-features = false, optional = true }
|
||||
tracing-opentelemetry = { version = "0.28", optional = true }
|
||||
tracing-flame = { version = "0.2", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1.53", features = ["full"] }
|
||||
Reference in New Issue
Block a user