SwiftclassIntelligenceFlowShared
class IntelligenceFlowShared.IFSpan
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolIntelligenceFlowShared.Span
Members 29
- deinit
deinit - field
let _state: Synchronization.Mutex<IntelligenceFlowShared.IFSpan.State> - field
let context: IntelligenceFlowShared.ServiceContext+0x10 - field
let errorChainExtractor: (@Sendable (Error) -> [(domain: String, code: Int64)])? - field
let kind: IntelligenceFlowShared.SpanKind+0x78 - field
let onEnd: @Sendable (IntelligenceFlowShared.FinishedIFSpan) -> () - field
let parentOperationName: String? - field
let parentSpan: IntelligenceFlowShared.IFSpan? - field
let spanContext: IntelligenceFlowShared.IFSpanContext+0x18 - field
let startBootSessionUUID: Foundation.UUID - field
let startMachTime: UInt64+0x88 - field
let startTimestamp: UInt64+0x80 - func
addEvent(IntelligenceFlowShared.SpanEvent) -> () - func
addLink(IntelligenceFlowShared.SpanLink) -> () - func
appendRLSource(_: IntelligenceFlowShared.RLComponent, id: Foundation.UUID) -> () - func
appendRLTarget(_: IntelligenceFlowShared.RLComponent, id: Foundation.UUID) -> () - func
appendStringArrayAttribute(_: String, entry: String) -> () - func
attributeValue(String) -> IntelligenceFlowShared.SpanAttribute? - func
end<A where A: IntelligenceFlowShared.TracerInstant>(at: @autoclosure () -> A) -> () - func
endAsFailure(Error) -> () - func
markAsFailure(Error) -> () - func
recordError<A where A: IntelligenceFlowShared.TracerInstant>(_: Error, attributes: IntelligenceFlowShared.SpanAttributes, at: @autoclosure () -> A) -> () - func
setStatus(IntelligenceFlowShared.SpanStatus) -> () - func
stampErrorChain([(domain: String, code: Int64)]) -> () - init
IntelligenceFlowShared.IFSpan.__allocating_init(operationName: String, context: IntelligenceFlowShared.ServiceContext, kind: IntelligenceFlowShared.SpanKind, startTimestamp: UInt64, startMachTime: UInt64, startBootSessionUUID: Foundation.UUID, parentSpan: IntelligenceFlowShared.IFSpan?, errorChainExtractor: (@Sendable (Error) -> [(domain: String, code: Int64)])?, onEnd: @Sendable (IntelligenceFlowShared.FinishedIFSpan) -> ()) -> IntelligenceFlowShared.IFSpan - var
final var attributes: IntelligenceFlowShared.SpanAttributes { get set } - var
final var enclosingQueryEventID: String? { get } - var
final var isRecording: Bool { get } - var
final var operationName: String { get set }
Header
class IFSpan { struct State { var operationName: Swift.String var attributes: IntelligenceFlowShared.SpanAttributes var events: [IntelligenceFlowShared.SpanEvent] var errors: [(any Swift.Error, IntelligenceFlowShared.SpanAttributes)] var status: IntelligenceFlowShared.SpanStatus? var isRecording: Swift.Bool } let context: IntelligenceFlowShared.ServiceContext let spanContext: IntelligenceFlowShared.IFSpanContext let kind: IntelligenceFlowShared.SpanKind let startTimestamp: Swift.UInt64 let startMachTime: Swift.UInt64 let startBootSessionUUID: Foundation.UUID let parentSpan: IntelligenceFlowShared.IFSpan? let parentOperationName: Swift.String? let onEnd: @Sendable (_: IntelligenceFlowShared.FinishedIFSpan) -> () let errorChainExtractor: (@Sendable (_: any Swift.Error) -> [(domain: Swift.String, code: Swift.Int64)])? let _state: Synchronization.Mutex<IntelligenceFlowShared.IFSpan.State> init(operationName: Swift.String, context: IntelligenceFlowShared.ServiceContext, kind: IntelligenceFlowShared.SpanKind, startTimestamp: Swift.UInt64, startMachTime: Swift.UInt64, startBootSessionUUID: Foundation.UUID, parentSpan: IntelligenceFlowShared.IFSpan?, errorChainExtractor: (@Sendable (_: any Swift.Error) -> [(domain: Swift.String, code: Swift.Int64)])?, onEnd: @escaping @Sendable (_: IntelligenceFlowShared.FinishedIFSpan) -> ()) final var attributes: IntelligenceFlowShared.SpanAttributes { get set } final var enclosingQueryEventID: Swift.String? { get } final var isRecording: Swift.Bool { get } final var operationName: Swift.String { get set } final func recordError<A>(_: any Swift.Error, attributes: IntelligenceFlowShared.SpanAttributes, at: @autoclosure () -> A) where A: IntelligenceFlowShared.TracerInstant final func endAsFailure(_: any Swift.Error) final func markAsFailure(_: any Swift.Error) final func appendRLSource(_: IntelligenceFlowShared.RLComponent, id: Foundation.UUID) final func appendRLTarget(_: IntelligenceFlowShared.RLComponent, id: Foundation.UUID) final func attributeValue(_: Swift.String) -> IntelligenceFlowShared.SpanAttribute? final func stampErrorChain(_: [(domain: Swift.String, code: Swift.Int64)]) final func appendStringArrayAttribute(_: Swift.String, entry: Swift.String) final func end<A>(at: @autoclosure () -> A) where A: IntelligenceFlowShared.TracerInstant final func addLink(_: IntelligenceFlowShared.SpanLink) final func addEvent(_: IntelligenceFlowShared.SpanEvent) final func setStatus(_: IntelligenceFlowShared.SpanStatus) deinit }