feat(logs): make application level parsing opt-in - #448
Open
lilienblum wants to merge 3 commits into
Open
Conversation
Greptile SummaryThe PR makes application-provided JSON log-level parsing opt-in and propagates the setting through deployment generators and runtime capture boundaries.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| crates/alien-core/src/application_logs.rs | Adds the shared parser and recognized application-level mapping. |
| crates/alien-core/src/stack_settings.rs | Adds the opt-in log setting with disabled-by-default serialization semantics. |
| crates/alien-deployment/src/helpers.rs | Injects or removes the runtime parsing environment variable during deployment reconciliation. |
| crates/alien-worker-runtime/src/otlp.rs | Applies parsed application levels to captured OTLP records while retaining stream fallback. |
| crates/alien-operator/src/collector_logs.rs | Applies the shared severity mapping to operator-collected application logs. |
| crates/alien-cloudformation/src/generator.rs | Adds the deployment parameter and serializes its boolean value into registered stack settings. |
| crates/alien-helm/src/generator.rs | Carries the new stack setting through generated Helm configuration. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Settings[logs.parseApplicationLevels] --> Deploy[Deployment environment injection]
Settings --> IaC[Helm and CloudFormation output]
Deploy --> Worker[Worker runtime capture]
Deploy --> Daemon[Daemon capture]
Settings --> Operator[Operator collector capture]
Worker --> Parser[Top-level JSON level parser]
Daemon --> Parser
Operator --> Parser
Parser --> OTLP[OTLP severity fields]
Fallback[stdout INFO / stderr ERROR] --> OTLP
Reviews (3): Last reviewed commit: "chore: merge main into alien-546-log-lev..." | Re-trigger Greptile
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.
Summary
Recognized values are TRACE, DEBUG, INFO, WARN/WARNING, ERROR, and FATAL, matched case-insensitively.
Verification
Linear: https://linear.app/alienplatform/issue/ALIEN-546