-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat(attributes): Add app.vitals.start.value and deprecate cold/warm split #576
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
Draft
buenaflor
wants to merge
3
commits into
main
Choose a base branch
from
feat/app-vitals-start-value
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+344
−58
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
1462374
feat(attributes): Add app.vitals.start.value and deprecate cold/warm …
buenaflor c4e3bcf
meta(attributes): Record PR 576 on app start value changelog entries
buenaflor b2e9942
fix(attributes): Use transform deprecation for app start cold/warm split
buenaflor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
82 changes: 82 additions & 0 deletions
82
model/attribute_transformations/app_vitals_start_cold_warm_to_value.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| { | ||
| "id": "app_vitals_start_cold_warm_to_value", | ||
| "brief": "Derive unified app.vitals.start.value and app.vitals.start.type from the type-specific cold and warm duration attributes. Cold and warm are mutually exclusive, so they are not 1:1 aliases of the unified key.", | ||
| "inputs": [ | ||
| { | ||
| "attribute": "app.vitals.start.cold.value", | ||
| "brief": "Deprecated cold app start duration." | ||
| }, | ||
| { | ||
| "attribute": "app.vitals.start.warm.value", | ||
| "brief": "Deprecated warm app start duration." | ||
| }, | ||
| { | ||
| "attribute": "app_start_cold", | ||
| "brief": "Legacy cold app start duration." | ||
| }, | ||
| { | ||
| "attribute": "app_start_warm", | ||
| "brief": "Legacy warm app start duration." | ||
| } | ||
| ], | ||
| "outputs": [ | ||
| { | ||
| "attribute": "app.vitals.start.value", | ||
| "brief": "Unified app start duration in milliseconds." | ||
| }, | ||
| { | ||
| "attribute": "app.vitals.start.type", | ||
| "brief": "App start type, cold or warm." | ||
| } | ||
| ], | ||
| "actions": [ | ||
| "If app.vitals.start.value is already present, keep it and do not overwrite it.", | ||
| "Prefer app.vitals.start.cold.value over app_start_cold, and app.vitals.start.warm.value over app_start_warm, when both a namespaced and a legacy name are present.", | ||
| "If a cold duration is present and app.vitals.start.value is missing, copy that duration to app.vitals.start.value and set app.vitals.start.type to \"cold\" when type is missing.", | ||
| "Otherwise, if a warm duration is present and app.vitals.start.value is missing, copy that duration to app.vitals.start.value and set app.vitals.start.type to \"warm\" when type is missing.", | ||
| "Do not copy a source duration that exceeds 180000 milliseconds.", | ||
| "Leave the source cold and warm attributes in place. Do not treat cold and warm as interchangeable copies of the unified key." | ||
| ], | ||
| "examples": [ | ||
| { | ||
| "name": "cold namespaced duration", | ||
| "input": { | ||
| "app.vitals.start.cold.value": 1234.0 | ||
| }, | ||
| "output": { | ||
| "app.vitals.start.value": 1234.0, | ||
| "app.vitals.start.type": "cold" | ||
| } | ||
| }, | ||
| { | ||
| "name": "warm namespaced duration", | ||
| "input": { | ||
| "app.vitals.start.warm.value": 567.0 | ||
| }, | ||
| "output": { | ||
| "app.vitals.start.value": 567.0, | ||
| "app.vitals.start.type": "warm" | ||
| } | ||
| }, | ||
| { | ||
| "name": "legacy cold duration", | ||
| "input": { | ||
| "app_start_cold": 1234.0 | ||
| }, | ||
| "output": { | ||
| "app.vitals.start.value": 1234.0, | ||
| "app.vitals.start.type": "cold" | ||
| } | ||
| }, | ||
| { | ||
| "name": "legacy warm duration", | ||
| "input": { | ||
| "app_start_warm": 567.0 | ||
| }, | ||
| "output": { | ||
| "app.vitals.start.value": 567.0, | ||
| "app.vitals.start.type": "warm" | ||
| } | ||
| } | ||
| ] | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.