Skip to content

Conversation

petyosi
Copy link
Contributor

@petyosi petyosi commented Jun 5, 2025

The context propagation works:

image

The complex attribute values are correctly sent:
image

I'm not certain on the docker setup changes.

Used biome as a all-in-one solution for linting/formatting. I think it is great (and simpler than prettier/eslint) for smaller projects. It should work with Zed, if you have the extension installed.

@petyosi petyosi requested a review from samuelcolvin June 5, 2025 10:06
Copy link

hyperlint-ai bot commented Jun 5, 2025

PR Change Summary

Transitioned the c4ai service from a Deno app to an Express app, enhancing context propagation and attribute value handling. Implemented biome for linting and formatting, simplifying the development process.

  • Migrated the c4ai service from Deno to Express framework
  • Improved context propagation functionality
  • Ensured correct handling of complex attribute values
  • Adopted biome for linting and formatting

Modified Files

  • c4ai/README.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

This also bumps the logfire package version, fixing the object
attributes issue.
@petyosi petyosi force-pushed the replace-deno-with-node branch from 1667608 to 7093a01 Compare June 5, 2025 10:25
Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

a few minor things, overall looks good but I haven't tried it.

Copy link
Member

Choose a reason for hiding this comment

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

I think we can just remove this file now we're not using deno.

c4ai/biome.json Outdated
},
"javascript": {
"formatter": {
"quoteStyle": "double"
Copy link
Member

Choose a reason for hiding this comment

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

can we use single quotes? it should make the diff smaller in code.

Copy link
Member

Choose a reason for hiding this comment

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

and no trailing commas 🙏.

c4ai/main.ts Outdated
column: number;
}

function logfireAddSchema(
Copy link
Member

Choose a reason for hiding this comment

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

can we move this down to keep the diff small-ish?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just realized what this function does - we should not need it anymore, now that the attributes work.

import * as logfire from "logfire";

logfire.configure({
diagLogLevel: logfire.DiagLogLevel.DEBUG,
Copy link
Member

Choose a reason for hiding this comment

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

I think we need to set service_name and environment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the following env variables to docker-compose - isn't this better?

      LOGFIRE_ENVIRONMENT: ${LOGFIRE_ENVIRONMENT}
      LOGFIRE_SERVICE_NAME: c4ai

@petyosi petyosi merged commit c35bb16 into main Jun 5, 2025
2 checks passed
@petyosi petyosi deleted the replace-deno-with-node branch June 5, 2025 14:20
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