Build Information
Successful build of NautilusTelemetry, reference v1.5.8 (6ce0f6), with Swift 6.1 for macOS (SPM) on 9 Dec 2025 00:19:00 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
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[50/86] Compiling NautilusTelemetry Counter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | #if os(macOS)
29 | true
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[51/86] Compiling NautilusTelemetry Histogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | #if os(macOS)
29 | true
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:32:45: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
30 | public var isMonotonic: Bool { true }
31 |
32 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 |
34 | public func add(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:48:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | let now = ContinuousClock.now
47 |
48 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | let copy = Self(name: name, unit: unit, description: description)
50 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Counter.swift:49:26: warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Counter<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Counter' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
47 |
48 | return lock.withLock {
49 | let copy = Self(name: name, unit: unit, description: description)
| `- warning: capture of 'self' with non-sendable type 'Counter<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 | copy.startTime = startTime
51 | copy.endTime = now
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:37:45: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
35 | public var aggregationTemporality = AggregationTemporality.delta
36 |
37 | public var isEmpty: Bool { lock.withLock { values.isEmpty } }
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
38 |
39 | public func record(_ number: T, attributes: TelemetryAttributes = [:]) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:53:15: warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | let now = ContinuousClock.now
52 |
53 | return lock.withLock {
| `- warning: type 'any Instrument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
55 | copy.startTime = startTime
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Instrument.swift:12:17: note: protocol 'Instrument' does not conform to the 'Sendable' protocol
10 | // MARK: - Instrument
11 |
12 | public protocol Instrument: AnyObject {
| `- note: protocol 'Instrument' does not conform to the 'Sendable' protocol
13 | /// The name of the instrument.
14 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Histogram.swift:54:26: warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public class Histogram<T: MetricNumeric>: Instrument, ExportableInstrument {
| `- note: generic class 'Histogram' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
52 |
53 | return lock.withLock {
54 | let copy = Self(name: name, unit: unit, description: description, explicitBounds: values.explicitBounds)
| `- warning: capture of 'self' with non-sendable type 'Histogram<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 | copy.startTime = startTime
56 | copy.endTime = now
[52/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 | }
[53/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 | }
[54/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 | }
[55/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 | }
[56/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 | }
[57/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 | }
[58/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 | }
[59/86] Compiling NautilusTelemetry V1ScopeLogs.swift
[60/86] Compiling NautilusTelemetry V1SeverityNumber.swift
[61/86] Compiling NautilusTelemetry ExponentialHistogramDataPointBuckets.swift
[62/86] Compiling NautilusTelemetry SummaryDataPointValueAtQuantile.swift
[63/86] Compiling NautilusTelemetry V1AggregationTemporality.swift
[64/86] Compiling NautilusTelemetry V1Exemplar.swift
[65/86] Compiling NautilusTelemetry V1ExponentialHistogram.swift
[66/86] Compiling NautilusTelemetry V1ExponentialHistogramDataPoint.swift
[67/86] Compiling NautilusTelemetry V1KeyValue.swift
[68/86] Compiling NautilusTelemetry V1KeyValueList.swift
[69/86] Compiling NautilusTelemetry V1Resource.swift
[70/86] Compiling NautilusTelemetry V1ExportLogsPartialSuccess.swift
[71/86] Compiling NautilusTelemetry V1ExportLogsServiceRequest.swift
[72/86] Compiling NautilusTelemetry V1ExportLogsServiceResponse.swift
[73/86] Compiling NautilusTelemetry V1LogRecord.swift
[74/86] Compiling NautilusTelemetry V1ResourceLogs.swift
[75/86] Compiling NautilusTelemetry HistogramValues.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
[76/86] Compiling NautilusTelemetry Instrument.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
[77/86] Compiling NautilusTelemetry Meter.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
[78/86] Compiling NautilusTelemetry MetricValues.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
[79/86] Compiling NautilusTelemetry ObservableCounter.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
[80/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
[81/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
[82/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
[82/86] Write Objects.LinkFileList
[83/86] Archiving libNautilusTelemetry.a
[85/89] Compiling SampleCode SampleCodeLogger.swift
[86/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] 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] Write Objects.LinkFileList
[88/89] Archiving libSampleCode.a
Build complete! (6.23s)
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.