Span

public final class Span
extension Span: Hashable

Undocumented

Stored Properties

  • Undocumented

    Declaration

    Swift

    public let context: Span.Context
  • Undocumented

    Declaration

    Swift

    public let parent: Span.Reference?
  • Undocumented

    Declaration

    Swift

    public let name: String
  • Undocumented

    Declaration

    Swift

    public let isSampled: Bool
  • Undocumented

    Declaration

    Swift

    public let startTime: Date
  • Undocumented

    Declaration

    Swift

    public private(set) var endTime: Date? { get }
  • Undocumented

    Declaration

    Swift

    public var tags: Tags
  • Undocumented

    Declaration

    Swift

    public var logs: [Log]

Computed Properties

  • Undocumented

    Declaration

    Swift

    public var isCompleted: Bool { get }

Methods - Tags

  • Undocumented

    Declaration

    Swift

    public func set(_ value: String, forKey key: Tag.Key)
  • Undocumented

    Declaration

    Swift

    public func set(_ value: Double, forKey key: Tag.Key)
  • Undocumented

    Declaration

    Swift

    public func set(_ value: Bool, forKey key: Tag.Key)
  • Undocumented

    Declaration

    Swift

    public func set(_ value: Int, forKey key: Tag.Key)
  • Undocumented

    Declaration

    Swift

    public func set(_ value: Data, forKey key: Tag.Key)

Methods - Log

  • Undocumented

    Declaration

    Swift

    public func log(_ tags: Tags, at time: Date = .init())

Methods - Lifecycle

  • Undocumented

    Declaration

    Swift

    public func finish(at time: Date = Date())
  • Undocumented

    Declaration

    Swift

    public func child(name: String, startTime: Date = Date()) -> Span
  • Undocumented

    Declaration

    Swift

    public func propagate<I: Injector>(
        in carrier: inout I.Carrier,
        using injector: I
    )

Nested Types

  • Undocumented

    See more

    Declaration

    Swift

    public struct Context : Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Reference : Hashable

Hashable

  • Declaration

    Swift

    public static func == (lhs: Span, rhs: Span) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)