Skip to content

Commit

Permalink
Update README.md (#11)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
rohit-kadhe authored Apr 1, 2024
1 parent 51ef09f commit f75fab8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <your_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
Expand Down

0 comments on commit f75fab8

Please sign in to comment.