()
| 170 | |
| 171 | #[test] |
| 172 | fn test_telemetry_config_builders() { |
| 173 | let config = TelemetryConfig::new("http://otel:4317") |
| 174 | .with_service_name("my-agent") |
| 175 | .with_traces(false) |
| 176 | .with_log_filter("debug"); |
| 177 | |
| 178 | assert_eq!(config.endpoint, "http://otel:4317"); |
| 179 | assert_eq!(config.service_name, "my-agent"); |
| 180 | assert!(!config.traces); |
| 181 | assert_eq!(config.log_filter, "debug"); |
| 182 | } |
| 183 | |
| 184 | #[test] |
| 185 | fn test_telemetry_config_clone() { |
nothing calls this directly
no test coverage detected