MCPcopy Create free account
hub / github.com/base/base / transaction_event_node_role

Function transaction_event_node_role

crates/execution/cli/src/standard_node.rs:959–963  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

957}
958
959fn transaction_event_node_role() -> Option<String> {
960 env::var("BASE_TRANSACTION_EVENTS_NODE_ROLE")
961 .ok()
962 .or_else(|| parse_otel_resource_attribute("base.node"))
963}
964
965fn parse_otel_resource_attribute(key: &str) -> Option<String> {
966 env::var("OTEL_RESOURCE_ATTRIBUTES").ok().and_then(|attrs| {

Callers 1

runnerMethod · 0.85

Calls 2

okMethod · 0.80

Tested by

no test coverage detected