| 87 | |
| 88 | impl Debug for StableTrace<'_> { |
| 89 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { |
| 90 | let Trace { |
| 91 | audit_log, |
| 92 | clusters, |
| 93 | introspection_sources, |
| 94 | cluster_replicas, |
| 95 | comments, |
| 96 | configs, |
| 97 | databases, |
| 98 | default_privileges, |
| 99 | id_allocator, |
| 100 | items, |
| 101 | network_policies, |
| 102 | roles, |
| 103 | role_auth, |
| 104 | schemas, |
| 105 | settings, |
| 106 | source_references, |
| 107 | system_object_mappings, |
| 108 | system_configurations, |
| 109 | cluster_system_configurations, |
| 110 | replica_system_configurations, |
| 111 | system_privileges, |
| 112 | storage_collection_metadata, |
| 113 | unfinalized_shards, |
| 114 | txn_wal_shard, |
| 115 | } = self.0; |
| 116 | let configs: CollectionTrace<ConfigCollection> = CollectionTrace { |
| 117 | values: configs |
| 118 | .values |
| 119 | .iter() |
| 120 | .filter(|value| !Self::is_user_version(value)) |
| 121 | .cloned() |
| 122 | .collect(), |
| 123 | }; |
| 124 | let settings: CollectionTrace<SettingCollection> = CollectionTrace { |
| 125 | values: settings |
| 126 | .values |
| 127 | .iter() |
| 128 | .filter(|value| { |
| 129 | !Self::is_builtin_migration_shard(value) |
| 130 | && !Self::is_expression_cache_shard(value) |
| 131 | && !Self::is_mock_authentication_nonce(value) |
| 132 | }) |
| 133 | .cloned() |
| 134 | .collect(), |
| 135 | }; |
| 136 | f.debug_struct("Trace") |
| 137 | .field("audit_log", audit_log) |
| 138 | .field("clusters", clusters) |
| 139 | .field("introspection_sources", introspection_sources) |
| 140 | .field("cluster_replicas", cluster_replicas) |
| 141 | .field("comments", comments) |
| 142 | .field("configs", &configs) |
| 143 | .field("databases", databases) |
| 144 | .field("default_privileges", default_privileges) |
| 145 | .field("id_allocator", id_allocator) |
| 146 | .field("items", items) |