Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPIK-558] Typescript SDK - basic client #919

Merged
merged 30 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0fc1f1f
Initial setup for the TypeScript SDK
ferc Nov 28, 2024
42ccd8b
Add tsup/vitest configs
ferc Nov 28, 2024
c9b6d43
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Nov 29, 2024
9aa5aa2
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 5, 2024
64ea632
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 5, 2024
fb72a4e
Change code generation to have the original output instead of a compi…
ferc Dec 7, 2024
7cd4cf9
WIP: Adding test suite
ferc Dec 7, 2024
65b632f
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 9, 2024
c533653
Fix first unit tes
ferc Dec 9, 2024
392309a
WIP: Add classes instead of functions
ferc Dec 11, 2024
49c7901
Sync with main
ferc Dec 12, 2024
d8dff2f
First draft of client, trace and span classes
ferc Dec 12, 2024
7f5a8a4
Improve types
ferc Dec 12, 2024
3292b3a
Sync with main
ferc Dec 12, 2024
409d2e8
Improve defaults
ferc Dec 12, 2024
f0a85b0
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 13, 2024
086df5c
Fix conflicts
ferc Dec 16, 2024
9858b28
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 17, 2024
18f3ab1
Add support for CJS
ferc Dec 18, 2024
0fe7965
Add global headers to the configuration (comet-workspace / authorizat…
ferc Dec 18, 2024
5c5f419
Add support for custom environment, workspace and project names
ferc Dec 18, 2024
65831df
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 18, 2024
8f252c5
Fix conflicts
ferc Dec 18, 2024
7448b1d
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Dec 18, 2024
cab0047
Improve project name management
ferc Dec 18, 2024
5fb5e83
Increment patch version
ferc Dec 18, 2024
747b857
Improve metadata in the package.json
ferc Dec 18, 2024
8653d06
Sync with main and fix conflicts
ferc Dec 31, 2024
02a9ba8
Merge branch 'main' of github.com:comet-ml/opik into fernando/typescr…
ferc Jan 2, 2025
9d3e89f
Sync with main
ferc Jan 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/opik-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "opik",
"name": "opik-frontend",
"description": "This is Front End part of Comet Opik",
"version": "0.0.1",
"private": true,
Expand Down
2 changes: 2 additions & 0 deletions sdks/typescript/.gitignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to maintain just the .gitignore file in the root folder of the repo.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
16 changes: 16 additions & 0 deletions sdks/typescript/examples/manual-trace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Opik } from "opik";

const client = new Opik();
const someTrace = await client.trace({
name: "test123",
startTime: new Date(),
});

const someSpan = await someTrace.span({
name: "test123 span",
type: "llm",
startTime: new Date(),
});

await someSpan.end();
await someTrace.end();
Loading