Build Information
Successful build of NautilusTelemetry, reference main (6ce0f6), with Swift 6.1 for macOS (SPM) on 9 Dec 2025 00:21:05 UTC.
Swift 6 data race errors: 12
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
:
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/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:118: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
:
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:123:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |
122 | func flushActiveInstruments() {
123 | 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
124 | // Make copies
125 | 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:125: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
:
123 | let instrumentsToReport = lock.withLock {
124 | // Make copies
125 | 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
126 | }
127 |
/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
[58/86] Compiling NautilusTelemetry ObservableGauge.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
:
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/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:118: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
:
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:123:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |
122 | func flushActiveInstruments() {
123 | 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
124 | // Make copies
125 | 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:125: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
:
123 | let instrumentsToReport = lock.withLock {
124 | // Make copies
125 | 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
126 | }
127 |
/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
[59/86] Compiling NautilusTelemetry ObservableUpDownCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
:
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/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:118: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
:
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:123:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |
122 | func flushActiveInstruments() {
123 | 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
124 | // Make copies
125 | 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:125: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
:
123 | let instrumentsToReport = lock.withLock {
124 | // Make copies
125 | 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
126 | }
127 |
/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
[60/86] Compiling NautilusTelemetry UpDownCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
:
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:111: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
109 | func register(_ instrument: Instrument) {
110 | lock.withLock {
111 | 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
112 | }
113 | }
/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:118: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
:
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:118: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
116 | lock.withLock {
117 | // O(N) -- may need to improve this
118 | 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
119 | }
120 | }
/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:123:34: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |
122 | func flushActiveInstruments() {
123 | 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
124 | // Make copies
125 | 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:125: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
:
123 | let instrumentsToReport = lock.withLock {
124 | // Make copies
125 | 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
126 | }
127 |
/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
[61/86] Compiling NautilusTelemetry NautilusTelemetry.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[62/86] Compiling NautilusTelemetry NautilusTelemetryLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[63/86] Compiling NautilusTelemetry NautilusTelemetryReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[64/86] Compiling NautilusTelemetry NoOpReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[65/86] Compiling NautilusTelemetry Baggage.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[66/86] Compiling NautilusTelemetry Span+URLSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[67/86] Compiling NautilusTelemetry Span.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:22:20: warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
20 |
21 | /// link from child to parent
22 | public static let up = SubtraceLinking(rawValue: 1 << 0)
| |- warning: static property 'up' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'up' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// link from parent to child
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:25:20: warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - SubtraceLinking
12 |
13 | public struct SubtraceLinking: OptionSet {
| `- note: consider making struct 'SubtraceLinking' conform to the 'Sendable' protocol
14 |
15 | public init(rawValue: Int) {
:
23 |
24 | /// link from parent to child
25 | public static let down = SubtraceLinking(rawValue: 1 << 1)
| |- warning: static property 'down' is not concurrency-safe because non-'Sendable' type 'SubtraceLinking' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'down' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:138:7: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
136 | public func addEvent(_ event: Event) {
137 | lock.withLock {
138 | if events == nil {
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | events = [Event]()
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:141:19: warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | // MARK: Public
75 |
76 | public struct Event: ExpressibleByStringLiteral {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
77 | let time: ContinuousClock.Instant
78 | let name: String
:
139 | events = [Event]()
140 | }
141 | events?.append(event)
| `- warning: capture of 'event' with non-sendable type 'Span.Event' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:4: warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'self' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:31: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:150:72: warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
13 | /// Minimal subset of OTLP.SpanLink with relationship concept
14 | public struct Link {
15 | public enum Relationship {
| `- note: consider making enum 'Relationship' conform to the 'Sendable' protocol
16 | case parent
17 | case child
:
148 | public func addLink(_ span: Span, relationship: Link.Relationship = .undefined) {
149 | lock.withLock {
150 | links.append(Link(traceId: span.traceId, id: span.id, relationship: relationship))
| `- warning: capture of 'relationship' with non-sendable type 'Link.Relationship' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | }
[68/86] Compiling NautilusTelemetry Compression.swift
[69/86] Compiling NautilusTelemetry Exporter+Logs.swift
[70/86] Compiling NautilusTelemetry Exporter+Metrics.swift
[71/86] Compiling NautilusTelemetry Exporter+Trace.swift
[72/86] Compiling NautilusTelemetry Exporter.swift
[73/86] Compiling NautilusTelemetry V1AnyValue.swift
[74/86] Compiling NautilusTelemetry V1ArrayValue.swift
[75/86] Compiling NautilusTelemetry V1InstrumentationScope.swift
[76/86] Compiling NautilusTelemetry Tracer+URLRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[77/86] Compiling NautilusTelemetry Tracer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[78/86] Compiling NautilusTelemetry URLTemplateMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[79/86] Compiling NautilusTelemetry FlushTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[80/86] Compiling NautilusTelemetry Identifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[81/86] Compiling NautilusTelemetry Sampling.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[82/86] Compiling NautilusTelemetry TimeReference.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:54:8: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | public var root: Span {
54 | lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | if let root = _root {
56 | return root
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:55:18: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
53 | public var root: Span {
54 | lock.withLock {
55 | if let root = _root {
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 | return root
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:69:24: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | idleTimer?.suspend()
68 |
69 | let priorRoot = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | let priorRoot = _root
71 | traceId = Identifiers.generateTraceId()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:70:20: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
68 |
69 | let priorRoot = lock.withLock {
70 | let priorRoot = _root
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
71 | traceId = Identifiers.generateTraceId()
72 | _root = nil // will be recreated on next access
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:254:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
252 | func retire(span: Span) {
253 | lock.withLock {
254 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
255 | }
256 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:262:36: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |
261 | func flushRetiredSpans() {
262 | let spansToReport: [Span] = lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
263 | // copy and empty the array.
264 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:42:20: note: class 'Span' does not conform to the 'Sendable' protocol
40 | /// Implements a pared down version of the spec
41 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
42 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
43 |
44 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:264:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
262 | let spansToReport: [Span] = lock.withLock {
263 | // copy and empty the array.
264 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
265 | retiredSpans.removeAll()
266 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:171:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
169 |
170 | /// Regex for matching parameters like {} and {id} in both path and query
171 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:47:8: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
45 | func suspend() {
46 | lock.withLock {
47 | if !suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | // Must match calls between suspend/resume
49 | flushTimer.suspend()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/FlushTimer.swift:66:7: warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | // MARK: - FlushTimer
8 |
9 | class FlushTimer {
| `- note: class 'FlushTimer' does not conform to the 'Sendable' protocol
10 |
11 | // MARK: Lifecycle
:
64 | flushTimer.activate()
65 | lock.withLock {
66 | if suspended {
| `- warning: capture of 'self' with non-sendable type 'FlushTimer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
67 | flushTimer.resume()
68 | suspended = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[82/86] Write Objects.LinkFileList
[83/86] Archiving libNautilusTelemetry.a
[85/89] Compiling SampleCode SampleCodeLogger.swift
[86/89] Compiling SampleCode ExampleReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:84:13: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | static let lock = OSAllocatedUnfairLock()
83 |
84 | static var userAgent: String = {
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | let bundle = Bundle.main
86 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:91:13: warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| `- warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:22:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
12 | import UIKit
13 | #endif
14 | import NautilusTelemetry
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
15 |
16 | // MARK: - ExampleReporter
:
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| |- note: add '@MainActor' to make static property 'sampler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:178:21: warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
176 | // MARK: Private
177 |
178 | static private var _sessionGUID: Data?
| |- warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sessionGUID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sessionGUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:129:25: warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 | // MARK: Lifecycle events
128 | func didEnterBackground() {
129 | InstrumentationSystem.tracer.flushTrace()
| `- warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 | Self.resetSessionGUID()
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: note: static property declared here
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| `- note: static property declared here
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:149:80: warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
147 | }
148 |
149 | let traceIdString = Identifiers.hexEncodedString(data: InstrumentationSystem.tracer.currentSpan.traceId)
| `- warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
150 | var urlRequest = URLRequest(url: url)
151 | urlRequest.httpBody = compressedPayload
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: note: static property declared here
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| `- note: static property declared here
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:156:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a '@Sendable' closure
18 | /// An example telemetry reporter. Intended to be modified for specific use cases.
19 | @available(iOS 13.0, *)
20 | public class ExampleReporter: NautilusTelemetryReporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
21 |
22 | // MARK: Lifecycle
:
154 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
155 | let task = urlSession.dataTask(with: urlRequest) { _, urlResponse, error in
156 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a '@Sendable' closure
157 | logger.debug("\(url): success, traceId = \(traceIdString)")
158 | } else {
[87/89] Emitting module SampleCode
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:84:13: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | static let lock = OSAllocatedUnfairLock()
83 |
84 | static var userAgent: String = {
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | let bundle = Bundle.main
86 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:91:13: warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| `- warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:22:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
12 | import UIKit
13 | #endif
14 | import NautilusTelemetry
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
15 |
16 | // MARK: - ExampleReporter
:
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| |- note: add '@MainActor' to make static property 'sampler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:178:21: warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
176 | // MARK: Private
177 |
178 | static private var _sessionGUID: Data?
| |- warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sessionGUID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sessionGUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |
180 | }
[87/89] Write Objects.LinkFileList
[88/89] Archiving libSampleCode.a
Build complete! (6.24s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NautilusTelemetry",
"name" : "NautilusTelemetry",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "NautilusTelemetry",
"targets" : [
"NautilusTelemetry"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SampleCode",
"targets" : [
"SampleCode"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "SampleCode",
"module_type" : "SwiftTarget",
"name" : "SampleCode",
"path" : "Sources/SampleCode",
"product_memberships" : [
"SampleCode"
],
"sources" : [
"ExampleReporter.swift",
"SampleCodeLogger.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "library"
},
{
"c99name" : "NautilusTelemetryTests",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetryTests",
"path" : "Tests/NautilusTelemetryTests",
"sources" : [
"Compression/CompressionTests.swift",
"Exporters/ExporterTests.swift",
"Instrumentation/HardwareDetailsTests.swift",
"Instrumentation/ProcessDetailsTests.swift",
"Metrics/CounterTests.swift",
"Metrics/HistogramTests.swift",
"Metrics/HistogramValuesTests.swift",
"Metrics/MeterTests.swift",
"Metrics/MetricExporterTests.swift",
"Metrics/MetricValuesTests.swift",
"Metrics/ObservableCounterTests.swift",
"Metrics/ObservableGaugeTests.swift",
"Metrics/ObservableUpDownCounterTests.swift",
"Metrics/SnapshotAndResetTests.swift",
"Metrics/UpDownCounterTests.swift",
"Reporters/ReporterTests.swift",
"TestingUtilities/TestDataNormalization.swift",
"TestingUtilities/TestUtils.swift",
"TestingUtilities/XCTestCase+Leaks.swift",
"TestingUtilities/XCTestCase+URLParseStrategy.swift",
"Tracing/Span+URLSessionTests.swift",
"Tracing/SpanTests.swift",
"Tracing/TraceExporterTests.swift",
"Tracing/Tracer+URLRequestTests.swift",
"Tracing/TracerTests.swift",
"Tracing/URLTemplateMatcherTests.swift",
"Utilities/FlushTimerTests.swift",
"Utilities/IdentifiersTests.swift",
"Utilities/ResourceAttributesTests.swift",
"Utilities/SamplerTests.swift",
"Utilities/TimeReferenceTests.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "test"
},
{
"c99name" : "NautilusTelemetry",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetry",
"path" : "Sources/NautilusTelemetry",
"product_memberships" : [
"NautilusTelemetry",
"SampleCode"
],
"sources" : [
"Compression/Compression.swift",
"Exporters/Exporter+Logs.swift",
"Exporters/Exporter+Metrics.swift",
"Exporters/Exporter+Trace.swift",
"Exporters/Exporter.swift",
"Exporters/OTLP-JSON/Common/V1AnyValue.swift",
"Exporters/OTLP-JSON/Common/V1ArrayValue.swift",
"Exporters/OTLP-JSON/Common/V1InstrumentationScope.swift",
"Exporters/OTLP-JSON/Common/V1KeyValue.swift",
"Exporters/OTLP-JSON/Common/V1KeyValueList.swift",
"Exporters/OTLP-JSON/Common/V1Resource.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsPartialSuccess.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceRequest.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceResponse.swift",
"Exporters/OTLP-JSON/Logs/V1LogRecord.swift",
"Exporters/OTLP-JSON/Logs/V1ResourceLogs.swift",
"Exporters/OTLP-JSON/Logs/V1ScopeLogs.swift",
"Exporters/OTLP-JSON/Logs/V1SeverityNumber.swift",
"Exporters/OTLP-JSON/Metrics/ExponentialHistogramDataPointBuckets.swift",
"Exporters/OTLP-JSON/Metrics/SummaryDataPointValueAtQuantile.swift",
"Exporters/OTLP-JSON/Metrics/V1AggregationTemporality.swift",
"Exporters/OTLP-JSON/Metrics/V1Exemplar.swift",
"Exporters/OTLP-JSON/Metrics/V1ExponentialHistogram.swift",
"Exporters/OTLP-JSON/Metrics/V1ExponentialHistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsPartialSuccess.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsServiceRequest.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsServiceResponse.swift",
"Exporters/OTLP-JSON/Metrics/V1Gauge.swift",
"Exporters/OTLP-JSON/Metrics/V1Histogram.swift",
"Exporters/OTLP-JSON/Metrics/V1HistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1Metric.swift",
"Exporters/OTLP-JSON/Metrics/V1NumberDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ResourceMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1ScopeMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1Sum.swift",
"Exporters/OTLP-JSON/Metrics/V1Summary.swift",
"Exporters/OTLP-JSON/Metrics/V1SummaryDataPoint.swift",
"Exporters/OTLP-JSON/OTLP.swift",
"Exporters/OTLP-JSON/Trace/SpanEvent.swift",
"Exporters/OTLP-JSON/Trace/SpanLink.swift",
"Exporters/OTLP-JSON/Trace/SpanSpanKind.swift",
"Exporters/OTLP-JSON/Trace/StatusStatusCode.swift",
"Exporters/OTLP-JSON/Trace/Tracev1Status.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTracePartialSuccess.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTraceServiceRequest.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTraceServiceResponse.swift",
"Exporters/OTLP-JSON/Trace/V1ResourceSpans.swift",
"Exporters/OTLP-JSON/Trace/V1ScopeSpans.swift",
"Exporters/OTLP-JSON/Trace/V1Span.swift",
"Instrumentation/HardwareDetails.swift",
"Instrumentation/InstrumentationSystem.swift",
"Instrumentation/MetricKitInstrument.swift",
"Instrumentation/ProcessDetails.swift",
"Instrumentation/ResourceAttributes.swift",
"Metrics/Counter.swift",
"Metrics/Histogram.swift",
"Metrics/HistogramValues.swift",
"Metrics/Instrument.swift",
"Metrics/Meter.swift",
"Metrics/MetricValues.swift",
"Metrics/ObservableCounter.swift",
"Metrics/ObservableGauge.swift",
"Metrics/ObservableUpDownCounter.swift",
"Metrics/UpDownCounter.swift",
"NautilusTelemetry.swift",
"NautilusTelemetryLogger.swift",
"Reporters/NautilusTelemetryReporter.swift",
"Reporters/NoOpReporter.swift",
"Tracing/Baggage.swift",
"Tracing/Span+URLSession.swift",
"Tracing/Span.swift",
"Tracing/Tracer+URLRequest.swift",
"Tracing/Tracer.swift",
"Tracing/URLTemplateMatcher.swift",
"Utilities/FlushTimer.swift",
"Utilities/Identifiers.swift",
"Utilities/Sampling.swift",
"Utilities/TimeReference.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.