feat(observability): add LangWatch exporter for AI tracing#1
Open
sergioestebance wants to merge 2 commits intomainfrom
Open
feat(observability): add LangWatch exporter for AI tracing#1sergioestebance wants to merge 2 commits intomainfrom
sergioestebance wants to merge 2 commits intomainfrom
Conversation
Add @mastra/langwatch package — a first-class LangWatch exporter that extends OtelExporter with pre-configured OTLP endpoint and Bearer token authentication. Follows the same pattern as @mastra/arize. Features: - Zero-config setup via LANGWATCH_API_KEY environment variable - Custom endpoint support via LANGWATCH_ENDPOINT for self-hosted instances - Automatic disable with warning when API key is missing - 5 unit tests covering all configuration paths Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add docs page: docs/observability/tracing/exporters/langwatch.mdx - Add reference page: reference/observability/tracing/exporters/langwatch.mdx - Add LangWatch to docs and reference sidebars (alphabetical order) - Add LangWatch to tracing overview external exporters list - Add changeset for initial @mastra/langwatch major release Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@mastra/langwatchpackage — a first-class LangWatch exporter for Mastra observabilityOtelExporterconfiguration with a dedicated zero-config exporterOtelExporter(same pattern as@mastra/arize) with pre-configured OTLP endpoint and Bearer token authChanges
New package:
observability/langwatch/LangwatchExporterclass extendingOtelExporter(~60 lines)https://app.langwatch.ai/api/otel/v1/tracesAuthorizationheaderLANGWATCH_API_KEYenv varLANGWATCH_ENDPOINTfor self-hosted instancesDocumentation
docs/observability/tracing/exporters/langwatch.mdxreference/observability/tracing/exporters/langwatch.mdxChangeset
@mastra/langwatch: major (initial release)Usage
Test plan
pnpm testpasses inobservability/langwatch/(5/5 tests)pnpm build --filter=@mastra/langwatchsucceedsLANGWATCH_API_KEYand verify traces appear in LangWatch dashboard🤖 Generated with Claude Code