-
Notifications
You must be signed in to change notification settings - Fork 48
feat(logs): migrate add-on logs from v2 to v4 API #1032
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
base: master
Are you sure you want to change the base?
Conversation
|
🔎 A preview has been automatically published! If you created the alias to the preview script, you can run this command to download and install this preview: clever-preview update addon-logs-v2-to-v4You can also run it from your local repository: ./scripts/preview.js update addon-logs-v2-to-v4
This preview will be deleted once this PR is closed. |
82548c8 to
9de5eb7
Compare
florian-sanders-cc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the command with a redis and it worked fine 👍
The code LGTM!
pdesoyres-cc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly there, I've experienced a strange issue (that was present on application logs before this PR)
Use ResourceLogStream for addon logs instead of the v2 API. This enables all log formats (human, json, json-stream) for add-ons.
Now that the v2 log API is gone, rename the file to its original name.
9de5eb7 to
24c094b
Compare
Context
The add-on logs endpoint is currently using the v2 API. The v4 API relies on a more modern stack, making it the preferred choice going forward.
Proposal
log-v4.jstolog.jssince v4 is now the standardlog-v4.jsfile (now consolidated intolog.js)Note
Temporarily, the service filter has been set to
allin a separate commit (chore: wip add service all). This is a work in progress and may need further refinement.Test plan
TODO
service=all