SignpostConfiguration
public struct SignpostConfiguration
Configuration values for the Publishers.Signpost operator.
Pass Publishers.SignpostConfiguration.Marker values to the initializer to define how signposts for
each event should be labelled:
- A nil marker value will disable signposts for that event
- A
.defaultmarker value will use the event name as the event label - A
.named(_:)marker value will use the passed string as the event label
-
init(log:receiveSubscriptionMarker: receiveMarker: receiveCompletionMarker: requestMarker: cancelMarker: ) Configuration values for the
Publishers.Signpostoperator.The default value specifies signposts should be grouped into the
com.github.tcldr.Entwine.Signpostsubsystem using the.pointsOfInterestcategory (displayed in most Xcode Intruments templates by default under the ‘Points of Interest’ instrument).Use a
Publishers.SignpostConfiguration.Markervalue to define how signposts for each event should be labelled:- A nil marker value will disable signposts for that event
- A
.defaultmarker value will use the event name as the event label A
.named(_:)marker value will use the passed string as the event label
Declaration
Swift
public init( log: OSLog = OSLog(subsystem: "com.github.tcldr.Entwine.Signpost", category: .pointsOfInterest), receiveSubscriptionMarker: Marker? = nil, receiveMarker: Marker? = nil, receiveCompletionMarker: Marker? = nil, requestMarker: Marker? = nil, cancelMarker: Marker? = nil )Parameters
logThe OSLog parameters to be used to mark signposts
receiveSubscriptionMarkerA marker value to identify subscription events. A
defaultvalue yields an event labelledsubscriptionreceiveMarkerA marker value to identify sequence output events. A
defaultvalue yields an event labelledreceivereceiveCompletionMarkerA marker value to identify sequence completion events. A
defaultvalue yields an event labelledreceiveCompletionrequestMarkerA marker value to identify demand request events. A
defaultvalue yields an event labelledrequestcancelMarkerA marker value to identify cancellation events. A
defaultvalue yields an event labelledcancel
View on GitHub
SignpostConfiguration Structure Reference