Browse Source

Enable python to use opentelemetry by default ( if env variable is configured for it)

tags/v0.2.2-rc
haixuanTao 2 years ago
parent
commit
d4dd90c930
2 changed files with 5 additions and 2 deletions
  1. +2
    -0
      Cargo.lock
  2. +3
    -2
      apis/python/node/Cargo.toml

+ 2
- 0
Cargo.lock View File

@@ -896,6 +896,7 @@ dependencies = [
"tokio",
"tokio-stream",
"tracing",
"tracing-opentelemetry",
"uuid",
]

@@ -1075,6 +1076,7 @@ dependencies = [
"tokio",
"tokio-stream",
"tracing",
"tracing-opentelemetry",
"tracing-subscriber",
]



+ 3
- 2
apis/python/node/Cargo.toml View File

@@ -9,8 +9,9 @@ license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["tracing"]
default = ["tracing", "telemetry"]
tracing = ["dora-node-api/tracing"]
telemetry = ["dora-runtime/telemetry"]

[dependencies]
dora-node-api = { workspace = true }
@@ -19,7 +20,7 @@ pyo3 = { version = "0.16", features = ["eyre", "abi3-py37"] }
eyre = "0.6"
serde_yaml = "0.8.23"
flume = "0.10.14"
dora-runtime = { workspace = true, features = ["telemetry"] }
dora-runtime = { workspace = true, features = ["tracing"] }

[lib]
name = "dora"


Loading…
Cancel
Save