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) <noreply@anthropic.com>
@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) <noreply@anthropic.com>
@github-actions
Copy link
Contributor

Copy link
Contributor

@OliviaShoup OliviaShoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR! just one requested change before approval


For information on using Prompt Tracking with OpenTelemetry spans, see <a href="/llm_observability/monitoring/prompt_tracking#opentelemetry-instrumentation">Prompt Tracking - OpenTelemetry Instrumentation</a>.

For information on using Prompt Tracking with OpenTelemetry spans, see <a href="/llm_observability/monitoring/prompt_tracking#opentelemetry-instrumentation">Prompt Tracking - OpenTelemetry Instrumentation</a>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd suggest cutting this line because it's a duplicate of the line above

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.

2 participants