[
https://issues.apache.org/jira/browse/CAMEL-23369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18076607#comment-18076607
]
Federico Mariani commented on CAMEL-23369:
------------------------------------------
it is AI, of course it is driven by hype!
> Add OpenTelemetry GenAI observability (traces and metrics) for AI components
> ----------------------------------------------------------------------------
>
> Key: CAMEL-23369
> URL: https://issues.apache.org/jira/browse/CAMEL-23369
> Project: Camel
> Issue Type: Improvement
> Affects Versions: 4.20.0
> Reporter: Federico Mariani
> Priority: Major
>
> Currently none of the Camel AI components (camel-openai,
> camel-langchain4j-chat, camel-langchain4j-embeddings, camel-spring-ai-chat,
> camel-google-vertexai, camel-aws-bedrock, camel-ibm-watsonx-ai) are
> instrumented by the _camel-telemetry_ tracing framework or the metrics
> frameworks (camel-opentelemetry-metrics, camel-micrometer).
> Similarly, the existing EventNotifier-based metrics (exchange duration,
> in-flight gauges) don't capture AI-specific data like token counts.
>
>
>
> The https://opentelemetry.io/docs/specs/semconv/gen-ai/ define standard span
> attributes (gen_ai.operation.name, gen_ai.provider.name,
> gen_ai.request.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens,
> gen_ai.response.finish_reasons, etc.) and metrics (gen_ai.client.token.usage
> histogram, gen_ai.client.operation.duration histogram) for LLM operations.
> Camel AIs components already expose token counts and response metadata as
> Camel message headers, but this data does not flow into distributed traces or
> metrics.
> We might improve the current camel AI implementations, and expose all the
> important metrics if not already exposed (for example, cache read and cache
> write tokens)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)