Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Contracts: Update Config::Debug #14789

Merged
merged 26 commits into from Aug 24, 2023
Merged

Contracts: Update Config::Debug #14789

merged 26 commits into from Aug 24, 2023

Conversation

pgherveou
Copy link
Contributor

@pgherveou pgherveou commented Aug 18, 2023

Update the Debug trait that was behind the unsafe-debug feature flag, and get rid of the feature flag

Most config should set it to () that will simply log contract calls when runtime::contracts log target is set to trace.

More advanced debugging tools can leverage this trait to introduce more sophisticated observability behaviors.
See previous PR (#14678) for more context.

Cumulus companion: paritytech/cumulus#3035

@pgherveou pgherveou changed the title Update Debug trait Contracts: Update Debug trait Aug 18, 2023
@pgherveou pgherveou changed the title Contracts: Update Debug trait Contracts: Add TraceableCallSpan trait Aug 18, 2023
@pgherveou pgherveou marked this pull request as ready for review August 18, 2023 21:25
@pgherveou pgherveou requested a review from athei as a code owner August 18, 2023 21:25
@pgherveou pgherveou requested a review from a team August 18, 2023 21:25
@pgherveou pgherveou requested a review from a team as a code owner August 18, 2023 21:25
@pgherveou pgherveou added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Aug 18, 2023
@pgherveou pgherveou assigned athei and unassigned athei Aug 18, 2023
@pgherveou pgherveou changed the title Contracts: Add TraceableCallSpan trait Contracts: Add Tracing trait Aug 20, 2023
@pgherveou
Copy link
Contributor Author

@athei moved back everything under the Debugging umbrella trait, and used back T::Debug associated trait name.

frame/contracts/src/debug.rs Outdated Show resolved Hide resolved
@pgherveou pgherveou added B1-note_worthy Changes should be noted in the release notes T1-runtime This PR/Issue is related to the topic “runtime”. and removed B0-silent Changes should not be mentioned in any release notes labels Aug 23, 2023
@pgherveou
Copy link
Contributor Author

@oleg-plakida you mind giving us a +1 here for removing the unsafe-debug feature added in the previous PR #14678

@pgherveou
Copy link
Contributor Author

@oleg-plakida you mind giving us a +1 here for removing the unsafe-debug feature added in the previous PR #14678

cc @rcny

@paritytech-ci paritytech-ci requested a review from a team August 23, 2023 13:52
@pgherveou
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Error: Statuses failed for 986fe10

@pgherveou
Copy link
Contributor Author

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants