in agents/agents-features/agents-features-opentelemetry/src/jvmTest/kotlin/ai/koog/agents/features/opentelemetry/feature/OpenTelemetryConfigTest.kt [243:256]
fun attributesMatches(attributes: Map<AttributeKey<*>, Any>): Boolean {
var conversationIdAttributeExists = false
var operationNameAttributeExists = false
attributes.forEach { key, value ->
if (key.key == conversationIdAttribute.key && value == conversationIdAttribute.value) {
conversationIdAttributeExists = true
}
if (key.key == operationNameAttribute.key && value == operationNameAttribute.value) {
operationNameAttributeExists = true
}
}
return conversationIdAttributeExists && operationNameAttributeExists
}