SwiftclassIntelligenceFlowShared

class IntelligenceFlowShared.IFSpan

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 29

  1. deinitdeinit
  2. fieldlet _state: Synchronization.Mutex<IntelligenceFlowShared.IFSpan.State>
  3. fieldlet context: IntelligenceFlowShared.ServiceContext+0x10
  4. fieldlet errorChainExtractor: (@Sendable (Error) -> [(domain: String, code: Int64)])?
  5. fieldlet kind: IntelligenceFlowShared.SpanKind+0x78
  6. fieldlet onEnd: @Sendable (IntelligenceFlowShared.FinishedIFSpan) -> ()
  7. fieldlet parentOperationName: String?
  8. fieldlet parentSpan: IntelligenceFlowShared.IFSpan?
  9. fieldlet spanContext: IntelligenceFlowShared.IFSpanContext+0x18
  10. fieldlet startBootSessionUUID: Foundation.UUID
  11. fieldlet startMachTime: UInt64+0x88
  12. fieldlet startTimestamp: UInt64+0x80
  13. funcaddEvent(IntelligenceFlowShared.SpanEvent) -> ()
  14. funcaddLink(IntelligenceFlowShared.SpanLink) -> ()
  15. funcappendRLSource(_: IntelligenceFlowShared.RLComponent, id: Foundation.UUID) -> ()
  16. funcappendRLTarget(_: IntelligenceFlowShared.RLComponent, id: Foundation.UUID) -> ()
  17. funcappendStringArrayAttribute(_: String, entry: String) -> ()
  18. funcattributeValue(String) -> IntelligenceFlowShared.SpanAttribute?
  19. funcend<A where A: IntelligenceFlowShared.TracerInstant>(at: @autoclosure () -> A) -> ()
  20. funcendAsFailure(Error) -> ()
  21. funcmarkAsFailure(Error) -> ()
  22. funcrecordError<A where A: IntelligenceFlowShared.TracerInstant>(_: Error, attributes: IntelligenceFlowShared.SpanAttributes, at: @autoclosure () -> A) -> ()
  23. funcsetStatus(IntelligenceFlowShared.SpanStatus) -> ()
  24. funcstampErrorChain([(domain: String, code: Int64)]) -> ()
  25. initIntelligenceFlowShared.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
  26. varfinal var attributes: IntelligenceFlowShared.SpanAttributes { get set }
  27. varfinal var enclosingQueryEventID: String? { get }
  28. varfinal var isRecording: Bool { get }
  29. varfinal var operationName: String { get set }
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
}