new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

langwatch/setup

9 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

LangWatch OpenTelemetry dependencies

Install required dependencies for LangWatch OpenTelemetry integration: npm install @vercel/otel langwatch @opentelemetry/api-logs @opentelemetry/instrumentation @opentelemetry/sdk-logs @ai-sdk/otel

Next.js instrumentationHook configuration

Enable experimentalInstrumentationHook in next.config.js: { experimental: { instrumentationHook: true } }

Next.js instrumentation.ts file location

Create a file named instrumentation.ts (or .js) in the root directory of the project or inside the src folder.

Next.js LangWatchExporter configuration

In instrumentation.ts, register telemetry using registerTelemetry(new LegacyOpenTelemetry()) and registerOTel with traceExporter set to new LangWatchExporter().

LangWatch API key setup from dashboard

Obtain your LANGWATCH_API_KEY from the LangWatch dashboard at https://app.langwatch.com/.

LangWatch package installation

Install the langwatch package to integrate LangWatch observability with your application.

LangWatch API key environment variable

Set LANGWATCH_API_KEY as an environment variable in your .env file with your API key value.

LangWatch client initialization with API key

Initialize LangWatch client in TypeScript by importing LangWatch and creating an instance with apiKey parameter: new LangWatch({ apiKey: 'your_api_key_here' }).

Node.js LangWatchExporter configuration

For Node.js, set up OpenTelemetry following the official guide, then use LangWatchExporter with apiKey parameter in NodeSDK configuration: new LangWatchExporter({ apiKey: process.env.LANGWATCH_API_KEY })

Give your agent this brain