Latitude Telemetry for Typescript
npm install @latitude-data/telemetry``sh`
npm install @latitude-data/telemetry
Requires Node.js 20 or higher.
Go to the documentation to learn more.
`typescript
import { LatitudeTelemetry } from '@latitude-data/telemetry'
import { Latitude } from '@latitude-data/sdk'
import { OpenAI } from 'openai'
const telemetry = new LatitudeTelemetry('my-api-key', {
instrumentations: {
latitude: Latitude,
openai: OpenAI,
},
})
// Automatically instrumented
const sdk = new Latitude('my-api-key', {
projectId: 'my-project-id',
versionUuid: 'my-version-uuid',
})
// Automatically instrumented
const openai = new OpenAI({
apiKey: 'my-api-key',
})
`
Find more examples.
Requires npm 0.5.10 or higher.
- Install dependencies: npm installnpm install
- Add [dev] dependencies: npm run lint
- Run linter: npm run format
- Run formatter: npm run test
- Run tests: npm run build`
- Build package:
The SDK is licensed under the MIT License - read the LICENSE file for details.