atiaomar1978-hub opened a new pull request, #25909:
URL: https://github.com/apache/camel/pull/25909

   ## Summary
   
   Adds producer-level GenAI observability test coverage for 
`langchain4j-agent`, completing the gap identified during review of 
apache/camel#25337 (Phase 1).
   
   - **`LangChain4jAgentObservabilityTest`** — verifies `generate_content` span 
emission with `gen_ai.operation.name`, `gen_ai.system`, `gen_ai.request.model`, 
token usage tags, and result headers when observability is enabled
   - **`shouldNotEmitGenAiSpanWhenDisabled`** — verifies no telemetry when 
`camel.aiObservability.enabled=false`
   - **Test dependencies** — adds test-scoped `camel-ai-observability`, 
`camel-telemetry`, and `camel-test-junit6` to `camel-langchain4j-agent/pom.xml` 
(same pattern as `camel-langchain4j-chat`)
   
   ## JIRA
   
   https://issues.apache.org/jira/browse/CAMEL-24556
   
   ## Testing
   
   ```bash
   ./mvnw test -pl components/camel-ai/camel-langchain4j-agent 
-Dtest=LangChain4jAgentObservabilityTest
   ```
   
   Both tests pass.
   
   _AI-generated on behalf of atiaomar1978-hub_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to