mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-28 06:29:49 +00:00
Report the network PeerId to the telemetry (#1835)
* Report the network PeerId to the telemetry * Fix accidental paste
This commit is contained in:
1 parent
8a3f52bdd8
commit
f5ba8a2ad9
2 files changed
+11
-2
No files matched your search
@@ -271,6 +271,7 @@ impl<Components: components::Components> Service<Components> {
|
||||
// Telemetry
|
||||
let telemetry = config.telemetry_url.clone().map(|url| {
|
||||
let is_authority = config.roles == Roles::AUTHORITY;
|
||||
let network_id = network.local_peer_id().to_base58();
|
||||
let pubkey = format!("{}", public_key);
|
||||
let name = config.name.clone();
|
||||
let impl_name = config.impl_name.to_owned();
|
||||
@@ -286,7 +287,8 @@ impl<Components: components::Components> Service<Components> {
|
||||
"config" => "",
|
||||
"chain" => chain_name.clone(),
|
||||
"pubkey" => &pubkey,
|
||||
"authority" => is_authority
|
||||
"authority" => is_authority,
|
||||
"network_id" => network_id.clone()
|
||||
);
|
||||
}),
|
||||
}))
|
||||
|
||||
Reference in new issue
Block a user