Skip to content

feat: add an instrumentation for llama index ts #25

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

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

Granipouss
Copy link

@Granipouss Granipouss commented Jun 4, 2024

Copy link

linear bot commented Jun 4, 2024

@Granipouss Granipouss force-pushed the brendan/eng-1507-llamaindex branch from dfb39b2 to 84e5219 Compare June 6, 2024 10:19
@Granipouss Granipouss force-pushed the brendan/eng-1507-llamaindex branch from 84e5219 to 26595ed Compare June 6, 2024 10:26
Copy link
Contributor

@Dam-Buty Dam-Buty left a comment

Choose a reason for hiding this comment

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

Looks good ! 2 comments

export const instrumentLlamaIndex = (client: LiteralClient) => {
const callbackManager = Settings.callbackManager;

type LlmCall = {
Copy link
Contributor

Choose a reason for hiding this comment

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

🥜 I have personal beef with types being declared inside of functions 🥊 would you plz consider moving it out ?

Copy link
Author

Choose a reason for hiding this comment

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

Is it used elsewhere ? What's that beef about ?

Copy link
Contributor

Choose a reason for hiding this comment

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

it just feels icky to define types inside functions, although of course it has 0 runtime impact so it's cool

@Granipouss Granipouss merged commit 03698fc into main Jun 10, 2024
2 checks passed
@Granipouss Granipouss deleted the brendan/eng-1507-llamaindex branch June 10, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants