Skip to content

test(instrumentation-js): validate Together AI OTel 2.x spans - #370

Merged
fran3cc merged 1 commit into
respanai:mainfrom
Nightingalelyy:test/otel2-js-together-export
Aug 21, 2026
Merged

test(instrumentation-js): validate Together AI OTel 2.x spans#370
fran3cc merged 1 commit into
respanai:mainfrom
Nightingalelyy:test/otel2-js-together-export

Conversation

@Nightingalelyy

@Nightingalelyy Nightingalelyy commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add real OpenTelemetry 2.x OTLP JSON serialization coverage for Together AI image, rerank, speech, transcription, and translation spans
  • assert canonical Respan model, request type, input, output, and token-usage fields survive serialization
  • add a none release intent because this change strengthens contract coverage without changing runtime behavior

Why.

The audit showed that Together AI non-chat spans contain canonical model and usage attributes before export, while the platform does not currently populate those values in its top-level non-chat columns. The correct package-side fix is to lock down the canonical OTLP wire contract rather than add unsupported aliases or change span types.

Impact.

This prevents regressions in non-chat attribute export and makes the remaining ingestion boundary explicit. There is no production runtime or package-version change.

The corresponding example-project fixes are local to respan-example-projects: exact shared-marker metadata for Vercel AI SDK, awaited Vertex AI shutdown, and complete streamed workflow capture.

Validation

  • Together AI package tests: 9/9

  • Vercel AI SDK package tests: 47/47

  • Vertex AI package tests: 7/7

  • all three package builds and npm pack --dry-run checks passed

  • all 18 corresponding examples passed with marker otel2-fix-js-group-05-20260815T144725Z

  • MCP audit: 18/18 trace trees and 58/58 individual span records inspected; one root per trace, matching counts, no orphans, cycles, or duplicates

  • release inventory, release intent, and diff checks passed

  • Full source and paired-example diffs were audited against every applicable document under contribution/; canonical span fields, OTel attribute shapes, release-intent/version ownership, and package boundaries have no remaining package-owned violation.

External follow-ups

  • Together AI examples are mock-backed and Vertex AI examples use explicit fake mode because the repository environment does not provide those providers' live credentials.

Companion examples

@Nightingalelyy Nightingalelyy changed the title test(instrumentations): cover Together non-chat OTLP export test(instrumentations): repair Together span content Aug 16, 2026
@Nightingalelyy
Nightingalelyy marked this pull request as ready for review August 16, 2026 14:23

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@Nightingalelyy Nightingalelyy changed the title test(instrumentations): repair Together span content test(instrumentation): validate Together AI OTel 2.x spans Aug 17, 2026
@Nightingalelyy Nightingalelyy changed the title test(instrumentation): validate Together AI OTel 2.x spans test(instrumentation-js): validate Together AI OTel 2.x spans Aug 18, 2026
@fran3cc
fran3cc merged commit 4d8bed4 into respanai:main Aug 21, 2026
35 checks passed
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