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
Open
docs: Add missing OpenTelemetry environment variables and @langfuse/otel package setup for JS/TS OpenAI SDK#2470doongsilee wants to merge 3 commits intolangfuse:mainfrom
doongsilee wants to merge 3 commits intolangfuse:mainfrom
Conversation
|
@doongsilee is attempting to deploy a commit to the langfuse Team on Vercel. A member of the Team first needs to authorize it. |
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
This PR adds missing documentation for OpenTelemetry setup in the JS/TS OpenAI SDK get-started guide.
Changes
Added OpenTelemetry environment variables configuration (
components-mdx/setup-otel-js.mdx)OTEL_EXPORTER_OTLP_ENDPOINTconfigurationOTEL_EXPORTER_OTLP_HEADERSconfiguration with base64 authenticationAdded @langfuse/otel package installation (
components-mdx/get-started/js-openai-sdk.mdx)@langfuse/otelto the required packages listLangfuseSpanProcessorused in OpenTelemetry setupContext
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
Important
Adds missing OpenTelemetry setup documentation for JS/TS OpenAI SDK, including environment variables and package installation.
OTEL_EXPORTER_OTLP_ENDPOINTandOTEL_EXPORTER_OTLP_HEADERStosetup-otel-js.mdx.setup-otel-js.mdx.@langfuse/otelpackage to installation instructions inget-started/js-openai-sdk.mdx.This description was created by
for 54c8df4. You can customize this summary. It will automatically update as commits are pushed.