Collect the report from the real environment.
()
| 515 | |
| 516 | /// Collect the report from the real environment. |
| 517 | pub(crate) fn collect() -> Report { |
| 518 | let registry = AgentRegistry::with_defaults(); |
| 519 | let probes = registry |
| 520 | .iter() |
| 521 | .map(|agent| AgentProbe { |
| 522 | name: agent.name().to_string(), |
| 523 | display_name: agent.display_name().to_string(), |
| 524 | }) |
| 525 | .collect::<Vec<_>>(); |
| 526 | let packaged = atomic_agent::integrations::registered_integrations(); |
| 527 | collect_from(&Sources::from_process(), &probes, &packaged) |
| 528 | } |
| 529 | |
| 530 | /// Collect the report from explicit sources: `probes` are the agent |
| 531 | /// adapters, `packaged` the agents with an integration package. |
no test coverage detected