Skip to main content

@anyway-sh/node-server-sdk on npm

View package on npm

Source on GitHub

View source code

Requirements

  • Node.js 18 or higher
  • npm, pnpm, or yarn

Installation

npm install @anyway-sh/node-server-sdk
Or with pnpm:
pnpm add @anyway-sh/node-server-sdk

Verify Installation

import { initialize } from "@anyway-sh/node-server-sdk";

initialize({
  appName: "test-app",
});

console.log("SDK installed successfully!");

ESM / Next.js

If your project uses ES modules, you must pass provider modules explicitly since OpenTelemetry’s require-based instrumentation doesn’t work with ESM imports:
import { initialize } from "@anyway-sh/node-server-sdk";
import OpenAI from "openai";

initialize({
  appName: "my-app",
  instrumentModules: {
    openAI: OpenAI,
  },
});
See Configuration for all available instrumentModules options.

Next Steps

Configuration

Configure the collector endpoint and authentication

Tracing LLM Calls

Start tracing your LLM calls