(
&mut self,
profile_folder: &Path,
env: &mut HashMap<String, String>,
)
| 16 | #[async_trait(?Send)] |
| 17 | impl 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 { |
no test coverage detected