[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[AI SDK](/c/ai-sdk/62)

# AI SDK Audit Logging: Enhancing Data Persistence and Tracking”

87 views · 6 likes · 5 posts


Redsquare (@redsquare) · 2025-11-19 · ♥ 1

It would be great if the ai-sdk had an audit option where it could log information into a predefined schema so I can capture chat turns, tool invocation, cost, token usage, system prompt used, chat history.


Anshuman Bhardwaj (@anshumanb) · 2025-11-20

Hi @redsquare, welcome to the Vercel Community!

This is a nice use case. Let me share it with our team.


Redsquare (@redsquare) · 2025-11-20 · ♥ 1

Hey @anshumanb Thanks,  I only ask because I am currently implementing it then thought how many other people are having to replicate this effort!

![image|690x124](upload://5wfI1rrmuB28xnZImS5KARKDFr1.png)


Gregor (@gr2m) · 2025-11-20 · ♥ 3

Thanks for sharing! We will prioritize observability after we ship v6. If you like, create an issue and ping me in it (@gr2m), I’ll make sure we track it for the observability milestone to make sure we incorporate your feedback


Nezz (@nezz1) · 2025-11-24 · ♥ 1

There are a large number of LLM observability tools out there that capture this for you and present it in a nice UI:

https://ai-sdk.dev/providers/observability