MCPcopy Create free account
hub / github.com/hashintel/hash / setup_subscriber

Function setup_subscriber

tests/graph/benches/util.rs:57–66  ·  view source on GitHub ↗
(
    group_id: &str,
    function_id: Option<&str>,
    value_str: Option<&str>,
)

Source from the content-addressed store, hash-verified

55}
56
57pub fn setup_subscriber(
58 group_id: &str,
59 function_id: Option<&str>,
60 value_str: Option<&str>,
61) -> impl Drop {
62 TelemetryRegistry::default()
63 .with_flamegraph(Path::new("out").join(generate_path(group_id, function_id, value_str)))
64 .init()
65 .expect("Failed to initialize tracing")
66}
67
68impl StoreWrapper {
69 #[expect(clippy::too_many_lines)]

Calls 6

generate_pathFunction · 0.85
with_flamegraphMethod · 0.80
defaultFunction · 0.50
expectMethod · 0.45
initMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected