Build Information
Failed to build NautilusTelemetry, reference main (5566ea), with Swift 6.1 for macOS (SPM) on 1 May 2026 18:42:04 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[31/93] Compiling NautilusTelemetry MetricValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:29: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:133:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 |
132 | func flushActiveInstruments() {
133 | let instrumentsToReport = lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:135:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
133 | let instrumentsToReport = lock.withLock {
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { true }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | /// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:46:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | callback(self)
45 |
46 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
48 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[32/93] Compiling NautilusTelemetry ObservableCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:29: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:133:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 |
132 | func flushActiveInstruments() {
133 | let instrumentsToReport = lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:135:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
133 | let instrumentsToReport = lock.withLock {
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { true }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | /// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:46:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | callback(self)
45 |
46 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
48 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[33/93] Compiling NautilusTelemetry ObservableGauge.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:29: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:133:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 |
132 | func flushActiveInstruments() {
133 | let instrumentsToReport = lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:135:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
133 | let instrumentsToReport = lock.withLock {
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { true }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | /// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:46:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | callback(self)
45 |
46 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
48 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[34/93] Compiling NautilusTelemetry ObservableUpDownCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:29: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:133:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 |
132 | func flushActiveInstruments() {
133 | let instrumentsToReport = lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:135:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
133 | let instrumentsToReport = lock.withLock {
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { true }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | /// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:46:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | callback(self)
45 |
46 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
48 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[35/93] Compiling NautilusTelemetry UpDownCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:29: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:133:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 |
132 | func flushActiveInstruments() {
133 | let instrumentsToReport = lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:135:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
133 | let instrumentsToReport = lock.withLock {
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { true }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | /// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:46:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | callback(self)
45 |
46 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
48 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[36/93] Compiling NautilusTelemetry NautilusTelemetry.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:121:29: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
119 | func register(_ instrument: Instrument) {
120 | lock.withLock {
121 | activeInstruments.append(instrument)
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in a '@Sendable' closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:128:41: warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
126 | lock.withLock {
127 | // O(N) -- may need to improve this
128 | activeInstruments.removeAll { $0 === instrument }
| `- warning: capture of 'instrument' with non-sendable type 'any Instrument' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:133:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 |
132 | func flushActiveInstruments() {
133 | let instrumentsToReport = lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:135:4: warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 |
14 | /// The meter is responsible for creating Instruments.
15 | public final class Meter {
| `- note: class 'Meter' does not conform to the 'Sendable' protocol
16 |
17 | // MARK: Lifecycle
:
133 | let instrumentsToReport = lock.withLock {
134 | // Make copies
135 | activeInstruments.compactMap { $0.snapshotAndReset() }
| `- warning: capture of 'self' with non-sendable type 'Meter' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { true }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | /// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:46:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | callback(self)
45 |
46 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
48 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableCounter.swift:47:26: warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
45 |
46 | return lock.withLock {
47 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | copy.startTime = startTime
49 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:43:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | callback(self)
42 |
43 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
45 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableGauge.swift:44:26: warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableGauge<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableGauge' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
42 |
43 | return lock.withLock {
44 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableGauge<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | copy.startTime = startTime
46 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:33:45: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
31 | public var isMonotonic: Bool { false }
32 |
33 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
34 |
35 | public func observe(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:45:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | callback(self)
44 |
45 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
47 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ObservableUpDownCounter.swift:46:26: warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class ObservableUpDownCounter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ObservableUpDownCounter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
44 |
45 | return lock.withLock {
46 | let copy = Self(name: name, unit: unit, description: description, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'ObservableUpDownCounter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
47 | copy.startTime = startTime
48 | copy.endTime = now
[37/93] Compiling NautilusTelemetry V1KeyValue.swift
[38/93] Compiling NautilusTelemetry V1KeyValueList.swift
[39/93] Compiling NautilusTelemetry V1Resource.swift
[40/93] Compiling NautilusTelemetry V1ExportLogsPartialSuccess.swift
[41/93] Compiling NautilusTelemetry V1ExportLogsServiceRequest.swift
[42/93] Compiling NautilusTelemetry V1ExportLogsServiceResponse.swift
[43/93] Compiling NautilusTelemetry V1LogRecord.swift
[44/93] Compiling NautilusTelemetry V1ResourceLogs.swift
[45/93] Compiling NautilusTelemetry V1ScopeLogs.swift
[46/93] Compiling NautilusTelemetry Compression.swift
[47/93] Compiling NautilusTelemetry ExponentialHistogramUtils.swift
[48/93] Compiling NautilusTelemetry Exporter+Logs.swift
[49/93] Compiling NautilusTelemetry Exporter+Metrics.swift
[50/93] Compiling NautilusTelemetry Exporter+Trace.swift
[51/93] Compiling NautilusTelemetry Exporter.swift
[52/93] Compiling NautilusTelemetry V1AnyValue.swift
[53/93] Compiling NautilusTelemetry V1ArrayValue.swift
[54/93] Compiling NautilusTelemetry V1InstrumentationScope.swift
[55/93] Compiling NautilusTelemetry V1ExportMetricsServiceResponse.swift
[56/93] Compiling NautilusTelemetry V1Gauge.swift
[57/93] Compiling NautilusTelemetry V1Histogram.swift
[58/93] Compiling NautilusTelemetry V1HistogramDataPoint.swift
[59/93] Compiling NautilusTelemetry V1Metric.swift
[60/93] Compiling NautilusTelemetry V1NumberDataPoint.swift
[61/93] Compiling NautilusTelemetry V1ResourceMetrics.swift
[62/93] Compiling NautilusTelemetry V1ScopeMetrics.swift
[63/93] Compiling NautilusTelemetry V1Sum.swift
[64/93] Compiling NautilusTelemetry V1SeverityNumber.swift
[65/93] Compiling NautilusTelemetry ExponentialHistogramDataPointBuckets.swift
[66/93] Compiling NautilusTelemetry SummaryDataPointValueAtQuantile.swift
[67/93] Compiling NautilusTelemetry V1AggregationTemporality.swift
[68/93] Compiling NautilusTelemetry V1Exemplar.swift
[69/93] Compiling NautilusTelemetry V1ExponentialHistogram.swift
[70/93] Compiling NautilusTelemetry V1ExponentialHistogramDataPoint.swift
[71/93] Compiling NautilusTelemetry V1ExportMetricsPartialSuccess.swift
[72/93] Compiling NautilusTelemetry V1ExportMetricsServiceRequest.swift
[73/93] Compiling NautilusTelemetry V1Summary.swift
[74/93] Compiling NautilusTelemetry V1SummaryDataPoint.swift
[75/93] Compiling NautilusTelemetry OTLP.swift
[76/93] Compiling NautilusTelemetry SpanEvent.swift
[77/93] Compiling NautilusTelemetry SpanLink.swift
[78/93] Compiling NautilusTelemetry SpanSpanKind.swift
[79/93] Compiling NautilusTelemetry StatusStatusCode.swift
[80/93] Compiling NautilusTelemetry Tracev1Status.swift
[81/93] Compiling NautilusTelemetry V1ExportTracePartialSuccess.swift
[82/93] Compiling NautilusTelemetry NetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[83/93] Compiling NautilusTelemetry ProcessDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[84/93] Compiling NautilusTelemetry ResourceAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[85/93] Compiling NautilusTelemetry Counter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[86/93] Compiling NautilusTelemetry ExponentialHistogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[87/93] Compiling NautilusTelemetry ExponentialHistogramValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[88/93] Compiling NautilusTelemetry Histogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[89/93] Compiling NautilusTelemetry HistogramValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:48:4: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | // MARK: - NetworkMonitor
10 |
11 | public final class NetworkMonitor {
| `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
46 | public func start() {
47 | pathMonitor.pathUpdateHandler = { [weak self] path in
48 | self?.networkPath.withLock { $0 = path }
| `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | }
50 | pathMonitor.start(queue: pathMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:48:45: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
46 | public var aggregationTemporality = AggregationTemporality.delta
47 |
48 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 |
50 | /// Record a value. Positive, negative, and zero values are all allowed (unlike `Histogram`),
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:61:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | let now = ContinuousClock.now
60 |
61 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | let copy = Self(name: name, unit: unit, description: description)
63 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/ExponentialHistogram.swift:62:26: warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
14 | /// Raw recorded values are retained until the next snapshot, allowing the exporter to pick
15 | /// the scale that best represents the observed range within a fixed bucket count.
16 | public class ExponentialHistogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'ExponentialHistogram' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: Lifecycle
:
60 |
61 | return lock.withLock {
62 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'ExponentialHistogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 | copy.startTime = startTime
64 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/83] Emitting module NautilusTelemetry
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
[3/91] Compiling NautilusTelemetry Instrument.swift
[4/91] Compiling NautilusTelemetry Meter.swift
[5/91] Compiling NautilusTelemetry MetricValues.swift
[6/91] Compiling NautilusTelemetry ObservableCounter.swift
[7/91] Compiling NautilusTelemetry ObservableGauge.swift
[8/91] Compiling NautilusTelemetry ObservableUpDownCounter.swift
[9/91] Compiling NautilusTelemetry UpDownCounter.swift
[10/91] Compiling NautilusTelemetry NautilusTelemetry.swift
[11/91] Compiling NautilusTelemetry V1Summary.swift
[12/91] Compiling NautilusTelemetry V1SummaryDataPoint.swift
[13/91] Compiling NautilusTelemetry OTLP.swift
[14/91] Compiling NautilusTelemetry SpanEvent.swift
[15/91] Compiling NautilusTelemetry SpanLink.swift
[16/91] Compiling NautilusTelemetry SpanSpanKind.swift
[17/91] Compiling NautilusTelemetry StatusStatusCode.swift
[18/91] Compiling NautilusTelemetry Tracev1Status.swift
[19/91] Compiling NautilusTelemetry V1ExportTracePartialSuccess.swift
[20/91] Compiling NautilusTelemetry V1KeyValue.swift
[21/91] Compiling NautilusTelemetry V1KeyValueList.swift
[22/91] Compiling NautilusTelemetry V1Resource.swift
[23/91] Compiling NautilusTelemetry V1ExportLogsPartialSuccess.swift
[24/91] Compiling NautilusTelemetry V1ExportLogsServiceRequest.swift
[25/91] Compiling NautilusTelemetry V1ExportLogsServiceResponse.swift
[26/91] Compiling NautilusTelemetry V1LogRecord.swift
[27/91] Compiling NautilusTelemetry V1ResourceLogs.swift
[28/91] Compiling NautilusTelemetry V1ScopeLogs.swift
[29/91] Compiling NautilusTelemetry V1ExportTraceServiceRequest.swift
[30/91] Compiling NautilusTelemetry V1ExportTraceServiceResponse.swift
[31/91] Compiling NautilusTelemetry V1ResourceSpans.swift
[32/91] Compiling NautilusTelemetry V1ScopeSpans.swift
[33/91] Compiling NautilusTelemetry V1Span.swift
[34/91] Compiling NautilusTelemetry HardwareDetails.swift
[35/91] Compiling NautilusTelemetry InstrumentationSystem.swift
[36/91] Compiling NautilusTelemetry MetricKitInstrument.swift
[37/91] Compiling NautilusTelemetry V1SeverityNumber.swift
[38/91] Compiling NautilusTelemetry ExponentialHistogramDataPointBuckets.swift
[39/91] Compiling NautilusTelemetry SummaryDataPointValueAtQuantile.swift
[40/91] Compiling NautilusTelemetry V1AggregationTemporality.swift
[41/91] Compiling NautilusTelemetry V1Exemplar.swift
[42/91] Compiling NautilusTelemetry V1ExponentialHistogram.swift
[43/91] Compiling NautilusTelemetry V1ExponentialHistogramDataPoint.swift
[44/91] Compiling NautilusTelemetry V1ExportMetricsPartialSuccess.swift
[45/91] Compiling NautilusTelemetry V1ExportMetricsServiceRequest.swift
[46/91] Compiling NautilusTelemetry NetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[47/91] Compiling NautilusTelemetry ProcessDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[48/91] Compiling NautilusTelemetry ResourceAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[49/91] Compiling NautilusTelemetry Counter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[50/91] Compiling NautilusTelemetry ExponentialHistogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[51/91] Compiling NautilusTelemetry ExponentialHistogramValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[52/91] Compiling NautilusTelemetry Histogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[53/91] Compiling NautilusTelemetry HistogramValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:113:18: error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
111 |
112 | @available(iOS 26.0, macOS 26.0, *)
113 | extension NWPath.LinkQuality: @retroactive CustomStringConvertible {
| `- error: 'LinkQuality' is not a member type of struct 'Network.NWPath'
114 | public var description: String {
115 | switch self {
Network.NWPath:2:15: note: 'NWPath' declared here
1 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
2 | public struct NWPath : Equatable, CustomDebugStringConvertible, Sendable {
| `- note: 'NWPath' declared here
3 | public var debugDescription: String { get }
4 | public enum Status : Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/NetworkMonitor.swift:29:59: error: value of type 'NWPath' has no member 'linkQuality'
27 |
28 | if #available(iOS 26.0, macOS 26.0, *) {
29 | attributes["network.path.link_quality"] = networkPath.linkQuality.description
| `- error: value of type 'NWPath' has no member 'linkQuality'
30 | }
31 | }
[54/91] Compiling NautilusTelemetry V1ExportMetricsServiceResponse.swift
[55/91] Compiling NautilusTelemetry V1Gauge.swift
[56/91] Compiling NautilusTelemetry V1Histogram.swift
[57/91] Compiling NautilusTelemetry V1HistogramDataPoint.swift
[58/91] Compiling NautilusTelemetry V1Metric.swift
[59/91] Compiling NautilusTelemetry V1NumberDataPoint.swift
[60/91] Compiling NautilusTelemetry V1ResourceMetrics.swift
[61/91] Compiling NautilusTelemetry V1ScopeMetrics.swift
[62/91] Compiling NautilusTelemetry V1Sum.swift
[63/91] Compiling NautilusTelemetry Compression.swift
[64/91] Compiling NautilusTelemetry ExponentialHistogramUtils.swift
[65/91] Compiling NautilusTelemetry Exporter+Logs.swift
[66/91] Compiling NautilusTelemetry Exporter+Metrics.swift
[67/91] Compiling NautilusTelemetry Exporter+Trace.swift
[68/91] Compiling NautilusTelemetry Exporter.swift
[69/91] Compiling NautilusTelemetry V1AnyValue.swift
[70/91] Compiling NautilusTelemetry V1ArrayValue.swift
[71/91] Compiling NautilusTelemetry V1InstrumentationScope.swift
[72/91] Compiling NautilusTelemetry NautilusTelemetryLogger.swift
[73/91] Compiling NautilusTelemetry NautilusTelemetryReporter.swift
[74/91] Compiling NautilusTelemetry NoOpReporter.swift
[75/91] Compiling NautilusTelemetry Baggage.swift
[76/91] Compiling NautilusTelemetry Redaction.swift
[77/91] Compiling NautilusTelemetry Span+URLSession.swift
[78/91] Compiling NautilusTelemetry Span.swift
[79/91] Compiling NautilusTelemetry Tracer+Metrics.swift
[80/91] Compiling NautilusTelemetry Tracer+URLRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[81/91] Compiling NautilusTelemetry Tracer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[82/91] Compiling NautilusTelemetry URLTemplateMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[83/91] Compiling NautilusTelemetry FlushTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[84/91] Compiling NautilusTelemetry Identifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[85/91] Compiling NautilusTelemetry Sampling.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[86/91] Compiling NautilusTelemetry TimeReference.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
[87/91] Compiling NautilusTelemetry Weak.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:61:15: error: cannot find 'attoseconds' in scope
59 | let attosecondsPerNs: Int128 = 1_000_000_000 // 10^9
60 | let halfNs: Int128 = 500_000_000 // 5 × 10^8
61 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
62 | let subNs = attos % attosecondsPerNs
63 | let ns = attos / attosecondsPerNs + (subNs >= halfNs ? 1 : subNs <= -halfNs ? -1 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/TimeReference.swift:76:15: error: cannot find 'attoseconds' in scope
74 | let attosecondsPerMs: Int128 = 1_000_000_000_000_000 // 10^15
75 | let halfMs: Int128 = 500_000_000_000_000 // 5 × 10^14
76 | let attos = attoseconds
| `- error: cannot find 'attoseconds' in scope
77 | let subMs = attos % attosecondsPerMs
78 | let ms = attos / attosecondsPerMs + (subMs >= halfMs ? 1 : subMs <= -halfMs ? -1 : 0)
BUILD FAILURE 6.1 macosSpm