(scenario: &str, bench: &str)
| 37 | use self::scenario::run_scenario_file; |
| 38 | |
| 39 | fn init_tracing(scenario: &str, bench: &str) -> impl Drop { |
| 40 | TelemetryRegistry::default() |
| 41 | .with_error_layer() |
| 42 | .with_console_logging(ConsoleConfig { |
| 43 | enabled: true, |
| 44 | format: LogFormat::Pretty, |
| 45 | level: None, |
| 46 | color: ColorOption::Auto, |
| 47 | stream: ConsoleStream::Stderr, |
| 48 | }) |
| 49 | .with_otlp( |
| 50 | OtlpConfig { |
| 51 | endpoint: Some("http://localhost:4317".to_owned()), |
| 52 | }, |
| 53 | "Graph Benches", |
| 54 | ) |
| 55 | .with_flamegraph(Path::new("out").join(generate_path( |
| 56 | "scenarios", |
| 57 | Some(scenario), |
| 58 | Some(bench), |
| 59 | ))) |
| 60 | .init() |
| 61 | .expect("Failed to initialize tracing") |
| 62 | } |
| 63 | |
| 64 | #[criterion] |
| 65 | fn scenarios(criterion: &mut Criterion) { |
no test coverage detected