Skip to content

docs(openinference): add native TypeScript tracing setup - #1096

Merged
nik13 merged 1 commit into
mainfrom
docs/openinference-typescript-native
Nov 2, 2026
Merged

nik13 merged 1 commit into
mainfrom
docs/openinference-typescript-native

Conversation

@nik13

@nik13 nik13 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Add the missing native TypeScript route to the OpenInference guide without a new tracing package or copied bridge. Preserve the existing Python and Java tabs and update the integration catalog summary.

  • Use published OpenInference Core function wrappers and standard method decorators with the current OpenTelemetry 3 SDK and OTLP/HTTP exporter.
  • Configure Future AGI's project resource attributes, collector path and authentication headers; export one agent span and one tool child.
  • Pass a native OITracer with traceConfig: {} to both APIs. A failing wire test showed that OpenInference Core 2.8.0 ignores environment privacy switches when the config is omitted. The documented configuration preserves redaction on both 2.8.0 and 2.8.1.
  • Explain content capture, exception-detail exposure, graceful shutdown and avoiding duplicate instrumentation.

Validation

  • Reproduced the missing TypeScript setup on main with three failing page-contract tests.
  • Extract and strictly compile the exact page snippet and tsconfig, then execute against a loopback OTLP receiver. Assert route, headers, project routing, native span kinds, parent/child relationships, no duplicates, inputs/outputs, error propagation, shutdown and privacy.
  • OpenInference Core 2.8.0 / TypeScript 5.9.3: 8 tests passed on Node 22.15.0 and Node 26.8.1.
  • OpenInference Core 2.8.1 / TypeScript 7.0.2: 8 tests passed on Node 22.15.0 and Node 26.8.1, including a clean frozen fixture install.
  • Existing Java page contracts: 5 passed. Integration catalog/scaffolding: 20 passed. Catalog typecheck, link audit and full Astro/Pagefind build passed.
  • Rendered the real built page in isolated Chromium; checked tab switching, six code blocks, privacy anchor and no JavaScript page errors; inspected screenshots.
  • Add a loopback-only CI matrix for floor/current dependencies on Node 22.15.0 and 24.

All local tests ran with outbound networking denied and synthetic credentials. No Cloud/vendor request or registry publication was performed. No product trace screenshot is claimed.

🤖 Generated with Claude Code

Exercise published core floor and current releases against a loopback OTLP receiver. Use explicit native trace configuration to preserve environment privacy switches on 2.8.0.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@nik13
nik13 merged commit 2eb5f96 into main Nov 2, 2026
10 checks passed
@nik13
nik13 deleted the docs/openinference-typescript-native branch November 2, 2026 17:10
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