.NET - OpenTelemetry - Application Insights - Truncated Input Message Traces #4323
Unanswered
mm-ggrazhdanski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thank you for the great work on the Agent Framework!
Question
Is there a way to view the entire input messages collection sent to a chat completion agent in Application Insights - without it being truncated?
Context
In .NET, we have a chat client agent configured as follows:
With an Azure Monitor trace provider configured.
The system prompt is part of the messages collection passed to
agent.RunAsync.When debugging unexpected agent behavior, message tracing is enabled, so the full conversation is captured. However, the
gen_ai.input.messagesfield in theinvoke_agent traceis usually truncated due to Application Insights’ message length limits - especially when our system prompt is long.This makes debugging harder because the actual user message often gets cut off. Tool call traces usually help us infer what happened, and we do store the full chat history in our database.
Having a single, complete trace in the Azure portal would be very useful.
Is there any way to achieve complete, non‑truncated message tracing in Application Insights?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions