Skip to content

Conversation

@drewdrewthis
Copy link
Collaborator

Summary

  • Use AttributeKey.LangWatchThreadId from langwatch SDK in Python instead of hardcoded "langwatch.thread.id" string
  • Use attributes.ATTR_LANGWATCH_THREAD_ID from langwatch SDK in JS instead of hardcoded string
  • Ensures consistency across JS and Python span collectors

Test plan

  • Python span collector tests pass (pytest tests/test_judge_span_collector.py)

Closes #193

Use AttributeKey.LangWatchThreadId from langwatch SDK instead of
hardcoded strings for consistency across JS and Python.

Closes #193
@drewdrewthis drewdrewthis force-pushed the issue193/use-correct-thread-id-attribute-in-jspython-span-collectors-and-backend branch from 16dfc5c to 62c51ad Compare December 12, 2025 15:45
Replace hardcoded "langwatch.thread.id" strings with
attributes.ATTR_LANGWATCH_THREAD_ID constant.
Update test files to use AttributeKey.LangWatchThreadId (Python) and
attributes.ATTR_LANGWATCH_THREAD_ID (JS) instead of hardcoded strings.
Check full attribute key before stripping prefix instead of
comparing against stripped constant.
@drewdrewthis drewdrewthis merged commit c621340 into main Dec 12, 2025
4 checks passed
@drewdrewthis drewdrewthis deleted the issue193/use-correct-thread-id-attribute-in-jspython-span-collectors-and-backend branch December 12, 2025 15:59
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.

Use correct thread ID attribute in JS/Python span collectors and backend

3 participants