SDK
Langtrace Typescript SDK
Github
Github repository for Langtrace Typescript SDK’s -> Scale3-Labs/langtrace-typescript-sdk.
The name of Typescript SDK has word langtrase
with a s
and NOT
langtrace
.
To use the managed version of Langtrace, follow these steps:
- Sign up by going to this link Langtrace.
- Create a new Project and Generate an API key.
Installation
- In your application, install the Langtrace Typescript SDK using npm:
Shell
Initialization
- Initialize the Langtrace SDK with the API key you generated in the step 2:
typescript
For self-hosted Langtrace add api_host
and point the URL to your own DNS or IP sddress.Langtrace
Example below:
Here we are using http://localhost:3000/api/trace
as the API host. You can replace it with your own DNS or IP address.
For more options on how to use SDK, please refer to features section.