MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / start

Method start

src/executor/analysis/instruments/telemetry.rs:18–27  ·  view source on GitHub ↗
(
        &mut self,
        profile_folder: &Path,
        env: &mut HashMap<String, String>,
    )

Source from the content-addressed store, hash-verified

16#[async_trait(?Send)]
17impl AnalysisInstrument for TelemetryInstrument {
18 async fn start(
19 &mut self,
20 profile_folder: &Path,
21 env: &mut HashMap<String, String>,
22 ) -> Result<()> {
23 let receiver = OtelReceiver::start(profile_folder).await?;
24 env.insert(OTEL_ENDPOINT_ENV.into(), receiver.endpoint().into());
25 self.started = Some((receiver, profile_folder.to_path_buf()));
26 Ok(())
27 }
28
29 async fn stop(&mut self) -> Result<()> {
30 let Some((receiver, profile_folder)) = self.started.take() else {

Callers 2

run_executorFunction · 0.45
runMethod · 0.45

Calls 1

endpointMethod · 0.80

Tested by

no test coverage detected