-
Notifications
You must be signed in to change notification settings - Fork 623
[service-utils] fix usageV2 caller #6346
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 8ab7fe6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
size-limit report 📦
|
PR-Codex overview
This PR focuses on updating the
UsageV2Producerclass in theservice-utilspackage to change the configuration from usingenvironmenttokafkaServers, reflecting a shift in how Kafka server connections are managed.Detailed summary
environment(string) tokafkaServers(string) in theUsageV2Producerclass.kafkaServersis a comma-separated list ofhost[:port]Kafka servers.PR-Codex overview
This PR focuses on refactoring the
service-utilspackage to improve the handling of Kafka server configurations and usage event URLs by replacing theenvironmentvariable with akafkaServersvariable and introducing ausageBaseUrloption.Detailed summary
UsageV2Producerto replaceenvironmentwithkafkaServers.UsageV2Optionstype to includeusageBaseUrlinstead ofenvironment.sendUsageV2Eventsto useusageBaseUrl.PR-Codex overview
This PR focuses on refactoring the
service-utilspackage by replacing theenvironmentproperty withkafkaServersin theUsageV2Producerclass and updating thesendUsageV2Eventsfunction to useusageBaseUrlinstead of a conditional base URL.Detailed summary
environmentwithkafkaServersinUsageV2Producerclass inpackages/service-utils/src/node/usageV2.ts.UsageV2Optionstype to includeusageBaseUrlinstead ofenvironmentinpackages/service-utils/src/cf-worker/usageV2.ts.sendUsageV2Eventsfunction to useoptions.usageBaseUrlfor constructing URLs.