Skip to content

Update OTel prompt tracking examples to use chat_template with roles#35445

Open
ZStriker19 wants to merge 5 commits intomasterfrom
zachg/llmobs_otel_prompt_tracking
Open

Update OTel prompt tracking examples to use chat_template with roles#35445
ZStriker19 wants to merge 5 commits intomasterfrom
zachg/llmobs_otel_prompt_tracking

Conversation

@ZStriker19
Copy link
Contributor

Summary

  • Replaces the simple template + greeting examples with a realistic chat_template example (system + user roles) across Python, JavaScript, and Go tabs
  • Users will now see SYSTEM/USER role labels in the UI instead of UNKNOWN
  • Keeps the field reference table unchanged

Test plan

  • Verify rendered examples look correct in the docs preview
  • Confirm role labels (SYSTEM/USER) appear correctly in the LLM Observability Prompts UI when using the example

🤖 Generated with Claude Code

ZStriker19 and others added 4 commits February 17, 2026 11:45
Replace simple single-message template examples with a more realistic
chat_template example showing system and user roles, so users can see
role labels (SYSTEM/USER) in the UI rather than UNKNOWN.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
@ZStriker19 ZStriker19 requested a review from a team as a code owner March 20, 2026 17:09
Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant