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

Method with_flamegraph

libs/@local/telemetry/src/lib.rs:114–117  ·  view source on GitHub ↗
(mut self, target_dir: impl Into<PathBuf>)

Source from the content-addressed store, hash-verified

112
113 #[must_use]
114 pub fn with_flamegraph(mut self, target_dir: impl Into<PathBuf>) -> Self {
115 self.flamegraph_path = Some(target_dir.into());
116 self
117 }
118
119 fn build(self) -> Result<(impl Into<Dispatch>, impl Drop), Report<InitTracingError>> {
120 let error_layer = self.error_layer.then(ErrorLayer::default);

Callers 2

setup_subscriberFunction · 0.80
init_tracingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected