MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_telemetry_config_builders

Function test_telemetry_config_builders

core/src/telemetry_otel.rs:172–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

with_log_filterMethod · 0.80
with_tracesMethod · 0.80
with_service_nameMethod · 0.80

Tested by

no test coverage detected