langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://docs.smith.langchain.com/
MIT License
422 stars 80 forks source link

Issue: AISDKExporter Debugging #1154

Closed Averylamp closed 2 weeks ago

Averylamp commented 3 weeks ago

Issue you'd like to raise.

I'd like to get set up with the AISDKExporter with instrumentation for the Vercel AISDK. I saw this was a recently added feature in 0.2.3, but I tried it out with 0.2.3 and wasn't able to get traces sent automatically to langsmith. I was wondering if there's any way to debug this exporter or if it wasn't integrated yet in 0.2.3

Suggestion:

Is there any way to debug the exporter? I do have traces set up with Sentry already which are being reported correctly, so I don't believe that its my otel setup.

dqbd commented 2 weeks ago

Hello @Averylamp! We've released a new langsmith@0.2.4 release with AISDKExporter({ debug: true }) support. You can also enable the debug mode by providing OTEL_LOG_LEVEL=DEBUG environment variable.

https://docs.smith.langchain.com/observability/how_to_guides/tracing/trace_with_vercel_ai_sdk#debugging-exporter