Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion muta-apm-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "muta-apm-derive"
version = "0.1.0-alpha.12"
version = "0.1.0"
authors = ["Muta Dev <muta@nervos.org>"]
edition = "2018"
license = "MIT"
Expand Down
23 changes: 9 additions & 14 deletions muta-apm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
[package]
name = "muta-apm"
version = "0.1.0-alpha.15"
version = "0.1.0"
authors = ["Muta Dev <muta@nervos.org>"]
edition = "2018"
edition = "2021"
license = "MIT"
description = "Muta application performance monitor."

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
crossbeam-channel = "0.4"
crossbeam-channel = "0.5"
lazy_static = "1.4"
parking_lot = "0.10"
rustracing = "0.4"
rustracing_jaeger = "0.4"
muta-apm-derive = "0.1.0-alpha.12"
parking_lot = "0.11"
rustracing = "0.5"
rustracing_jaeger = "0.7"
muta-apm-derive = "0.1"
log = "0.4"
creep = "0.2"

[dev-dependencies]
async-trait = "0.1"
bytes = "0.5"
creep = "0.2"
crossbeam-channel = "0.4"
bytes = "1.1"
lazy_static = "1.4"
overlord = "0.2.0-alpha.11"
rustracing = "0.4"
rustracing_jaeger = "0.4"
tokio = { version = "0.2", features = ["macros", "rt-threaded"] }
tokio = { version = "1.14", features = ["macros", "rt"] }
muta-protocol = { git = "https://github.com/nervosnetwork/muta.git", rev = "49474fd" }
4 changes: 1 addition & 3 deletions muta-apm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ pub fn global_tracer_register(service_name: &str, udp_addr: SocketAddr, batch_si
*tracer = Some(Tracer::with_sender(AllSampler, span_tx));

reporter
.set_agent_addr(udp_addr)
.expect("set udp addr error");
.set_agent_addr(udp_addr);

let mut batch_spans = Vec::with_capacity(batch_size + 1);
std::thread::spawn(move || loop {
Expand All @@ -49,7 +48,6 @@ pub fn global_tracer_register(service_name: &str, udp_addr: SocketAddr, batch_si
});
}

#[derive(Default)]
pub struct MutaTracer {
pub(crate) inner: RwLock<Option<Tracer>>,
}
Expand Down
6 changes: 3 additions & 3 deletions muta-codec-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "muta-codec-derive"
version = "0.2.2"
authors = ["Muta Dev <muta@nervos.org>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/nervosnetwork/muta-utils"
license = "MIT"
description = "Muta fixed codec derive procedural macros."
Expand All @@ -16,7 +16,7 @@ quote = "1.0"
syn = "1.0"

[dev-dependencies]
bytes = "0.5"
bytes = "1.1"
rand = "0.7"
rlp = "0.4"
rlp = "0.5"
muta-protocol = { git = "https://github.com/nervosnetwork/muta.git", rev = "49474fd" }
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2020-03-09
1.56.1