Skip to content

Commit 68c6c28

Browse files
joamagclaude
andcommitted
refactor: restructure Logstash notification payload fields
- Use dedicated "version" field for colony version instead of overloading "colony" - Set "colony" field as boolean flag to indicate notification origin Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3354f18 commit 68c6c28

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16-
*
16+
* Restructured Logstash notification payload to use dedicated `version` field and `colony` boolean flag
1717

1818
### Fixed
1919

src/colony/libs/observer_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,11 @@ def notify_logstash(operation_name, *arguments, **named_arguments):
394394
"host": socket.gethostname(),
395395
"hostname": socket.gethostname(),
396396
"type": "notification",
397-
"colony": information.VERSION,
398397
"name": operation_name,
399398
"args": arguments_s,
400399
"kwargs": named_arguments,
400+
"version": information.VERSION,
401+
"colony": True,
401402
}
402403

403404
logger.debug(

0 commit comments

Comments
 (0)