Skip to content

docs: Add missing OpenTelemetry environment variables and @langfuse/otel package setup for JS/TS OpenAI SDK#2470

Open
doongsilee wants to merge 3 commits intolangfuse:mainfrom
doongsilee:main
Open

docs: Add missing OpenTelemetry environment variables and @langfuse/otel package setup for JS/TS OpenAI SDK#2470
doongsilee wants to merge 3 commits intolangfuse:mainfrom
doongsilee:main

Conversation

@doongsilee
Copy link

@doongsilee doongsilee commented Jan 23, 2026

Summary

This PR adds missing documentation for OpenTelemetry setup in the JS/TS OpenAI SDK get-started guide.

Changes

  1. Added OpenTelemetry environment variables configuration (components-mdx/setup-otel-js.mdx)

    • Added OTEL_EXPORTER_OTLP_ENDPOINT configuration
    • Added OTEL_EXPORTER_OTLP_HEADERS configuration with base64 authentication
    • Included instructions for generating base64 encoded auth string using terminal command
    • This was already present in Python documentation but missing in JS/TS
  2. Added @langfuse/otel package installation (components-mdx/get-started/js-openai-sdk.mdx)

    • Added @langfuse/otel to the required packages list
    • This package is required for LangfuseSpanProcessor used in OpenTelemetry setup

Context

The JS/TS OpenAI SDK integration requires OpenTelemetry environment variables to be configured, similar to the Python version. Without these environment variables, the OpenTelemetry exporter cannot properly authenticate and send traces to Langfuse, and the integration will silently fail without any error messages.

Testing

  • Verified that the documentation matches the Python version structure
  • Confirmed that all required packages are now listed

Important

Adds missing OpenTelemetry setup documentation for JS/TS OpenAI SDK, including environment variables and package installation.

  • Documentation:
    • Adds OpenTelemetry environment variables OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS to setup-otel-js.mdx.
    • Provides instructions for generating base64 encoded auth string in setup-otel-js.mdx.
    • Adds @langfuse/otel package to installation instructions in get-started/js-openai-sdk.mdx.
  • Context:
    • Aligns JS/TS OpenAI SDK documentation with Python version for OpenTelemetry setup.
    • Ensures proper authentication and trace sending to Langfuse.

This description was created by Ellipsis for 54c8df4. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 23, 2026
@CLAassistant
Copy link

CLAassistant commented Jan 23, 2026

CLA assistant check
All committers have signed the CLA.

@vercel
Copy link

vercel bot commented Jan 23, 2026

@doongsilee is attempting to deploy a commit to the langfuse Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the documentation Improvements or additions to documentation label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants