ramu11 opened a new pull request, #25882: URL: https://github.com/apache/camel/pull/25882
## CAMEL-24561: Add Micrometer Observation for GenAI ### Description Adds optional Micrometer Observation support for Camel GenAI observability. When a non-NOOP `ObservationRegistry` is available, the GenAI client operation is wrapped in a Micrometer `Observation` named `gen_ai.client.operation`. The observation uses Camel's existing `context.spanName()` for the contextual name and records low-cardinality GenAI attributes. When Micrometer Observation is not available or the registry is a NOOP registry, the existing Camel behavior is preserved. ### Implementation * Added optional Micrometer Observation support for GenAI. * Uses `gen_ai.client.operation` as the observation name. * Reuses Camel's existing `context.spanName()` for contextual naming. * Records low-cardinality GenAI attributes. * Observation owns the operation lifecycle. * Preserves existing behavior when Observation support is unavailable. ### Testing Relevant tests were added/updated to verify the Observation behavior while preserving the existing GenAI functionality. -- 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]
