Replace deprecated opentelemetry-jaeger 0.22 (incompatible with OTel 0.27) with opentelemetry-otlp 0.27. Update TracingConfig fields (jaeger_endpoint → otlp_endpoint, enable_jaeger → enable_export). Uncomment init_observability() in trading_service, ml_training_service, and backtesting_service. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
82 lines
2.0 KiB
TOML
82 lines
2.0 KiB
TOML
[package]
|
|
name = "common"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
publish.workspace = true
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
description = "Shared utilities and common types for Foxhunt HFT Trading System"
|
|
|
|
[dependencies]
|
|
# Core async and utilities
|
|
tokio.workspace = true
|
|
futures.workspace = true
|
|
async-trait.workspace = true
|
|
|
|
# Serialization
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
|
|
# Error handling
|
|
thiserror.workspace = true
|
|
anyhow.workspace = true
|
|
|
|
# Time handling
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
|
|
# Financial types
|
|
rust_decimal = { workspace = true, features = ["serde", "macros"] }
|
|
num-traits.workspace = true
|
|
|
|
# Database dependencies
|
|
sqlx = { workspace = true, features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid", "rust_decimal", "macros"], optional = true }
|
|
redis.workspace = true
|
|
|
|
# Logging and tracing
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
tracing-appender.workspace = true
|
|
tracing-opentelemetry.workspace = true
|
|
opentelemetry.workspace = true
|
|
opentelemetry-otlp.workspace = true
|
|
opentelemetry_sdk.workspace = true
|
|
|
|
# gRPC (for correlation ID propagation)
|
|
tonic.workspace = true
|
|
|
|
# Configuration
|
|
toml.workspace = true
|
|
config = { path = "../config" }
|
|
|
|
# Trading engine dependency removed - common is now the canonical source
|
|
|
|
# Utilities
|
|
uuid = { workspace = true, features = ["v4", "serde"] }
|
|
once_cell.workspace = true
|
|
rand.workspace = true
|
|
|
|
# Metrics (Wave 5)
|
|
prometheus.workspace = true
|
|
lazy_static.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tokio-test.workspace = true
|
|
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
|
|
fastrand = "2.1"
|
|
jsonwebtoken.workspace = true
|
|
ml = { path = "../ml" }
|
|
tempfile = "3.8"
|
|
|
|
[features]
|
|
default = ["database"]
|
|
database = ["sqlx"]
|
|
|
|
[[bench]]
|
|
name = "ml_strategy_bench"
|
|
harness = false |