-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
64 lines (54 loc) · 2.17 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
authors = ["Enrico Risa <[email protected]>"]
description = "Prima.it opentelemetry standard library"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "prima-tracing"
readme = "README.md"
repository = "https://github.com/primait/prima_tracing.rs"
version = "0.14.1"
[features]
default = []
# Legacy feature names kept for compatibility reasons
prima-logger-datadog = ["datadog"]
prima-logger-json = ["json-logger"]
prima-telemetry = ["traces"]
datadog = ["json-logger", "opentelemetry", "tracing-opentelemetry"]
json-logger = []
traces = ["tracing-opentelemetry", "opentelemetry", "opentelemetry_sdk", "opentelemetry-otlp"]
# feature sets most likely used in given environment
dev = ["traces"]
live = ["json-logger", "datadog", "traces"]
rt-tokio-current-thread = ["opentelemetry_sdk/rt-tokio-current-thread"]
[[example]]
name = "custom-json-subscriber"
path = "examples/custom_json_subscriber.rs"
required-features = ["json-logger"]
[[example]]
name = "custom-subscriber"
path = "examples/custom_subscriber.rs"
required-features = ["json-logger"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
opentelemetry = {version = "0.27", optional = true}
opentelemetry-otlp = {version = "0.27", features = ["http-proto", "reqwest-client"], default-features = false, optional = true}
opentelemetry_sdk = {version = "0.27", features = ["rt-tokio"], optional = true}
tracing = {version = "0.1"}
tracing-log = {version = "0.2"}
tracing-opentelemetry = {version = "0.28", optional = true}
tracing-subscriber = {version = "0.3", features = ["env-filter"]}
# serialization/deserialization
serde = {version = "^1.0", features = ["derive"]}
# json serialization
serde_json = "^1.0"
# dates
chrono = {version = "^0.4", default-features = false, features = ["serde", "clock"]}
url = "2.5.0"
once_cell = "1.19.0"
[dev-dependencies]
actix-web = "4.0.1"
opentelemetry-jaeger = {version = "0.22", features = ["integration_test"]}
prima_bridge = "0.19"
tokio = {version = "1.17", features = ["rt", "macros", "rt-multi-thread"]}
tracing-actix-web = {version = "0.7.11", features = ["opentelemetry_0_27"]}
uuid = {version = "1.10", features = ["v4"]}