openllmetry icon indicating copy to clipboard operation
openllmetry copied to clipboard

🚀 Feature: Emit OTel Log Events following GenAI semconv for LangChain

Open aabmass opened this issue 1 year ago • 2 comments

Which component is this feature for?

Langchain Instrumentation

🔖 Feature description

Hello 👋 The latest OTel Gen AI semantic conventions put prompt content into OTel Log Events instead of Span attributes/events. In particular, it would be great to see this for LangChain/LangGraph instrumentations.

🎤 Why is this feature needed ?

So telemetry matches the current OTel semantic conventions

✌️ How do you aim to achieve this?

I haven't been joining the GenAI Semconv WG meetings and don't know the current plan. If the plan is to move instrumentation into OTel, I can work on that and implement it in OTel repos.

Otherwise, I can send PRs here.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

There is https://github.com/traceloop/openllmetry/issues/1455 but it doesn't mention log events specifically

  • [X] I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

aabmass avatar Nov 21 '24 17:11 aabmass

Thanks @aabmass! We definitely want to do that and we'd love any assistance here :)

nirga avatar Nov 21 '24 18:11 nirga

Will be fixed as part of #2456

nirga avatar Jan 02 '25 15:01 nirga

@nirga I think we can close this as well, right?

dinmukhamedm avatar Jul 29 '25 17:07 dinmukhamedm