Repository navigation
Remove internal Elastic log forwarding - #343
Merged
Merged
Conversation
omegascorp
approved these changes
Aug 12, 2026
omegascorp
left a comment
Collaborator
There was a problem hiding this comment.
-2 dependecies and -2,900 lines of code that's great 🚀
…ipping # Conflicts: # packages/modelence/package-lock.json
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We were shipping every console line from tenant apps straight into the Elastic search cluster (stdout/stderr monkey-patch + winston), but nothing reads that data — Studio pulls logs from CloudWatch. This removes the whole path:
modelence-loggerbinmetrics.tsnow only starts the APM agentlogDebug/logInfo/logErrorare console-only, controlled byMODELENCE_LOG_LEVEL(defaultinfo)winston+winston-elasticsearchdepsOne behavior change: telemetry-enabled apps previously suppressed console output — now logs always go to stdout, so they land in CloudWatch like everything else.
Note
Medium Risk
Changes logging behavior for telemetry-enabled apps (console was previously suppressed) and removes a telemetry sink, but APM and CloudWatch-based log consumption remain.
Overview
Removes the unused path that shipped console output into Elasticsearch. Studio already reads logs from CloudWatch, so this drops the winston/
winston-elasticsearchstack, the stdout/stderr monkey-patch (loggerProcess), and the unusedmodelence-loggerbin.metricsnow only starts the Elastic APM agent.logDebug/logInfo/logErrorwrite to console only, gated byMODELENCE_LOG_LEVEL(defaultinfo).Behavior change: telemetry-enabled apps previously suppressed console output; logs now always go to stdout so they land in CloudWatch like everything else.
Reviewed by Cursor Bugbot for commit 9d0fe62. Bugbot is set up for automated code reviews on this repo. Configure here.