From f75fab8364725180f1edf27bb80c79a66dead1cf Mon Sep 17 00:00:00 2001 From: Rohit Kadhe <113367036+rohit-kadhe@users.noreply.github.com> Date: Mon, 1 Apr 2024 10:22:45 -0600 Subject: [PATCH] Update README.md (#11) * Update README.md * Update README.md * Update README.md --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3da27c99..7c1dca19 100644 --- a/README.md +++ b/README.md @@ -26,18 +26,22 @@ To use the managed SaaS version of Langtrace, follow the steps below: 4. In your application, install the Langtrace SDK and initialize it with the API key you generated in the step 3. 5. The code for installing and setting up the SDK is shown below: -If your application is built using **typescript/javascript**: +### If your application is built using **typescript/javascript**: -``` +``` typescript npm i @langtrase/typescript-sdk ``` - +``` typescript +import * as Langtrace from '@langtrase/typescript-sdk // Must precede any llm module imports +Langtrace.init({ api_key: }) ``` -import { init } from '@langtrace-init/init'; -init({ api_key: process.env.LANGTRACE_API_KEY }); +OR +``` typescript +import * as Langtrace from '@langtrase/typescript-sdk // Must precede any llm module imports +LangTrace.init() // LANGTRACE_API_KEY as an ENVIRONMENT variable ``` -If your application is built using **python**: +### If your application is built using **python**: ``` pip install langtrace-python-sdk