Skip to content

Conversation

@arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Feb 26, 2025


PR-Codex overview

This PR focuses on updating the UsageV2Producer class in the service-utils package to change the configuration from using environment to kafkaServers, reflecting a shift in how Kafka server connections are managed.

Detailed summary

  • Changed the property from environment (string) to kafkaServers (string) in the UsageV2Producer class.
  • Updated the documentation to clarify that kafkaServers is a comma-separated list of host[:port] Kafka servers.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}


PR-Codex overview

This PR focuses on refactoring the service-utils package to improve the handling of Kafka server configurations and usage event URLs by replacing the environment variable with a kafkaServers variable and introducing a usageBaseUrl option.

Detailed summary

  • Updated UsageV2Producer to replace environment with kafkaServers.
  • Modified the UsageV2Options type to include usageBaseUrl instead of environment.
  • Refactored URL construction in sendUsageV2Events to use usageBaseUrl.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}


PR-Codex overview

This PR focuses on refactoring the service-utils package by replacing the environment property with kafkaServers in the UsageV2Producer class and updating the sendUsageV2Events function to use usageBaseUrl instead of a conditional base URL.

Detailed summary

  • Replaced environment with kafkaServers in UsageV2Producer class in packages/service-utils/src/node/usageV2.ts.
  • Updated UsageV2Options type to include usageBaseUrl instead of environment in packages/service-utils/src/cf-worker/usageV2.ts.
  • Modified sendUsageV2Events function to use options.usageBaseUrl for constructing URLs.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 2:03am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Feb 26, 2025 2:03am
login ⬜️ Skipped (Inspect) Feb 26, 2025 2:03am
thirdweb_playground ⬜️ Skipped (Inspect) Feb 26, 2025 2:03am
wallet-ui ⬜️ Skipped (Inspect) Feb 26, 2025 2:03am

@arcoraven arcoraven requested a review from a team as a code owner February 26, 2025 01:43
@changeset-bot
Copy link

changeset-bot bot commented Feb 26, 2025

🦋 Changeset detected

Latest commit: 8ab7fe6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@thirdweb-dev/service-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 26, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 26, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.56 KB (0%) 932 ms (0%) 632 ms (+23.15% 🔺) 1.6 s
thirdweb (cjs) 124.25 KB (0%) 2.5 s (0%) 1.1 s (+32.37% 🔺) 3.6 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 70 ms (+41.01% 🔺) 182 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 22 ms (+187.99% 🔺) 32 ms
thirdweb/react (minimal + tree-shaking) 19.35 KB (0%) 387 ms (0%) 179 ms (+34.17% 🔺) 566 ms

@vercel vercel bot temporarily deployed to Preview – wallet-ui February 26, 2025 01:48 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 26, 2025 01:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 26, 2025 01:48 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 February 26, 2025 01:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground February 26, 2025 01:49 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui February 26, 2025 01:49 Inactive
@vercel vercel bot temporarily deployed to Preview – login February 26, 2025 01:49 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 February 26, 2025 01:49 Inactive
@arcoraven arcoraven merged commit b60d251 into main Feb 26, 2025
27 of 29 checks passed
@arcoraven arcoraven deleted the ph/fix-kafka-server branch February 26, 2025 01:53
@joaquim-verges joaquim-verges mentioned this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants