Open ktoso opened 4 years ago
Existing PR on old repo https://github.com/ktoso/gsoc-swift-baggage-context/pull/2
This could be handled with static
properties on the keys, right? We can default them to true
but if you don't want them to be logged/enumerated/... you set them to false
. Something like static var allowsEnumeration: Bool { return false }
This mirrors the https://github.com/slashmo/gsoc-swift-baggage-context/issues/35 ticket
--
Additional capability similar to privacy in os_log to be added to baggage keys.
A key has to define if it wants to be included in forEach and if it wants to be logged.
via @tomerd