Skip to content

fix: update semantic conventions docs with correct attributes and SDK constants#129

Merged
rogeriochaves merged 2 commits intomainfrom
fix/semantic-conventions-docs
Mar 11, 2026
Merged

fix: update semantic conventions docs with correct attributes and SDK constants#129
rogeriochaves merged 2 commits intomainfrom
fix/semantic-conventions-docs

Conversation

@rogeriochaves
Copy link
Contributor

@rogeriochaves rogeriochaves commented Mar 11, 2026

Summary

  • Fix langwatch.tagslangwatch.labels (the old attribute is deprecated in the SDK)
  • Fix langwatch.streaminglangwatch.gen_ai.streaming to match the actual SDK constant value
  • Add "Using SDK Constants" section showing how to import { attributes } from "langwatch" and use typed constants like attributes.ATTR_LANGWATCH_LABELS
  • Add complete reference table of all ATTR_LANGWATCH_* constants and their string values

Test plan

  • Verify the docs page renders correctly on preview
  • Confirm attribute names match typescript-sdk/src/observability-sdk/semconv/attributes.ts

…d SDK constants

- Fix langwatch.tags → langwatch.labels (tags is deprecated)
- Fix langwatch.streaming → langwatch.gen_ai.streaming to match SDK
- Add "Using SDK Constants" section with import { attributes } from "langwatch" usage
- Add complete table of all ATTR_LANGWATCH_* constants and their values
…on constants

- Move "Using SDK Constants" section below attribute tables for better flow
- Add Python SDK usage with AttributeKey class alongside TypeScript
- Wrap full constants lists in an accordion to reduce page noise
@rogeriochaves rogeriochaves merged commit 20eb5e4 into main Mar 11, 2026
2 checks passed
@rogeriochaves rogeriochaves deleted the fix/semantic-conventions-docs branch March 11, 2026 16:07
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