Files
swift-sdk/Sources/Hanzo/Models/O11yO11yErrorWithSpan.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

76 lines
3.0 KiB
Swift

//
// O11yO11yErrorWithSpan.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yErrorWithSpan: Sendable, Codable, ParameterConvertible, Hashable {
/** ErrorID is the exception instance id. */
public var errorId: String?
/** ExceptionEscaped marks an exception that escaped its span uncaught. */
public var exceptionEscaped: Bool?
/** ExceptionMsg is the exception's message. */
public var exceptionMessage: String?
/** ExceptionStacktrace is the captured stack trace. */
public var exceptionStacktrace: String?
/** ExceptionType is the exception's type. */
public var exceptionType: String?
/** GroupID is the exception group it belongs to. */
public var groupID: String?
/** ServiceName is the service that reported it. */
public var serviceName: String?
/** SpanID is the span it happened on. */
public var spanID: String?
/** Timestamp is when it happened. */
public var timestamp: Date?
/** TraceID is the trace the span belonged to. */
public var traceID: String?
public init(errorId: String? = nil, exceptionEscaped: Bool? = nil, exceptionMessage: String? = nil, exceptionStacktrace: String? = nil, exceptionType: String? = nil, groupID: String? = nil, serviceName: String? = nil, spanID: String? = nil, timestamp: Date? = nil, traceID: String? = nil) {
self.errorId = errorId
self.exceptionEscaped = exceptionEscaped
self.exceptionMessage = exceptionMessage
self.exceptionStacktrace = exceptionStacktrace
self.exceptionType = exceptionType
self.groupID = groupID
self.serviceName = serviceName
self.spanID = spanID
self.timestamp = timestamp
self.traceID = traceID
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case errorId
case exceptionEscaped
case exceptionMessage
case exceptionStacktrace
case exceptionType
case groupID
case serviceName
case spanID
case timestamp
case traceID
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(errorId, forKey: .errorId)
try container.encodeIfPresent(exceptionEscaped, forKey: .exceptionEscaped)
try container.encodeIfPresent(exceptionMessage, forKey: .exceptionMessage)
try container.encodeIfPresent(exceptionStacktrace, forKey: .exceptionStacktrace)
try container.encodeIfPresent(exceptionType, forKey: .exceptionType)
try container.encodeIfPresent(groupID, forKey: .groupID)
try container.encodeIfPresent(serviceName, forKey: .serviceName)
try container.encodeIfPresent(spanID, forKey: .spanID)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
try container.encodeIfPresent(traceID, forKey: .traceID)
}
}