Skip to content

Add structured log event emitted when a creator key TTL extension is triggered#556

Open
jaynomyaro wants to merge 2 commits into
accesslayerorg:mainfrom
jaynomyaro:yaro
Open

Add structured log event emitted when a creator key TTL extension is triggered#556
jaynomyaro wants to merge 2 commits into
accesslayerorg:mainfrom
jaynomyaro:yaro

Conversation

@jaynomyaro

Copy link
Copy Markdown
Contributor

Summary

Adds a structured log event whenever a creator key TTL (Time-To-Live) extension is triggered. This improves observability by making TTL extension operations traceable for monitoring, debugging, and auditing purposes.

Changes
Added a structured log event that is emitted whenever a creator key TTL is successfully extended.
Included relevant metadata in the log event, such as:
Creator identifier/key.
Storage key affected.
Previous TTL value (where available).
Updated TTL value.
Ledger sequence or timestamp (where applicable).
Ensured the event is emitted only after a successful TTL extension.
Standardized the log format to align with existing structured logging conventions.
Why

TTL extensions are important lifecycle events for contract storage but were previously not visible through structured logs. Emitting a dedicated event improves operational visibility, simplifies debugging, and enables downstream monitoring and audit tooling without affecting contract behavior.

Testing
Added unit tests to verify the structured log event is emitted when a creator key TTL extension occurs.
Verified the emitted event contains the expected metadata.
Confirmed no log event is emitted when the TTL extension is skipped or fails.
Verified existing contract functionality remains unchanged.
Closed #553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add structured log event emitted when a creator key TTL extension is triggered

1 participant