Build Information
Successful build of NautilusTelemetry, reference main (57ba0a
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 17:47:53 UTC.
Swift 6 data race errors: 17
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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 InferSendableFromCaptures
Build Log
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[5/77] Compiling NautilusTelemetry V1Status.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:23: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
21 | }()
22 |
23 | 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: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[6/77] Compiling NautilusTelemetry HardwareDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:23: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
21 | }()
22 |
23 | 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: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[7/77] Compiling NautilusTelemetry InstrumentationSystem.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:23: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
21 | }()
22 |
23 | 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: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[8/77] Compiling NautilusTelemetry MetricKitInstrument.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:23: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
21 | }()
22 |
23 | 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: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[9/77] Compiling NautilusTelemetry ProcessDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:23: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
21 | }()
22 |
23 | 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: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[10/77] Compiling NautilusTelemetry Counter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:23: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
21 | }()
22 |
23 | 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: annotate 'isOnMac' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // This doesn't change after launch, so evaluate once
25 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:13: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
11 |
12 | static public private(set) var tracer = Tracer()
13 | 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: annotate 'meter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
[11/77] Compiling NautilusTelemetry V1ArrayValue.swift
[12/77] Compiling NautilusTelemetry V1InstrumentationLibrary.swift
[13/77] Compiling NautilusTelemetry V1KeyValue.swift
[14/77] Compiling NautilusTelemetry V1KeyValueList.swift
[15/77] Compiling NautilusTelemetry V1Resource.swift
[16/77] Compiling NautilusTelemetry V1ExportLogsServiceRequest.swift
[17/77] Compiling NautilusTelemetry V1InstrumentationLibraryLogs.swift
[18/77] Compiling NautilusTelemetry V1LogRecord.swift
[19/77] Compiling NautilusTelemetry ObservableUpDownCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[20/77] Compiling NautilusTelemetry UpDownCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[21/77] Compiling NautilusTelemetry NautilusTelemetry.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[22/77] Compiling NautilusTelemetry ExampleReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[23/77] Compiling NautilusTelemetry NoOpReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[24/77] Compiling NautilusTelemetry Reporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[25/77] Compiling NautilusTelemetry ResourceAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:25:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | let timeReference = TimeReference(serverOffset: 0) // Ideally the offset to server time should be computed
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:49: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
47 | }
48 |
49 | 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: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | let bundle = Bundle.main
51 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:56: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
54 | }()
55 |
56 | 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: annotate '_sessionGUID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static var sessionGUID: Data {
58 | lock.sync {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:86: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
84 | }
85 |
86 | 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
| |- note: annotate 'sampler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | static var samplingEnabled: Bool {
88 | sampler.guid = Self.sessionGUID
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:17:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
15 | /// A sampler that is stable for a given GUID
16 | /// Intended to be used for session-based sampling or similar use cases
17 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
18 |
19 | private let lock = UnfairLock()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:12: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
10 | public struct InstrumentationSystem {
11 |
12 | 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: annotate 'tracer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static public private(set) var meter = Meter()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Reporters/ExampleReporter.swift:139:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | /// An example telemetry reporter. Intended to be modified for specific use cases.
15 | @available(iOS 13.0, *)
16 | public class ExampleReporter: Reporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
17 |
18 | /// If collector supports brotli in the future
:
137 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
138 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
139 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | print("\(url): success, traceId = \(traceIdString)")
141 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:12: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
10 | public struct HardwareDetails {
11 |
12 | 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: annotate 'platformCachedValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | // This doesn't change after launch, so evaluate once
14 |
[26/77] Compiling NautilusTelemetry V1ExponentialHistogramDataPoint.swift
[27/77] Compiling NautilusTelemetry V1ExportMetricsServiceRequest.swift
[28/77] Compiling NautilusTelemetry V1Gauge.swift
[29/77] Compiling NautilusTelemetry V1Histogram.swift
[30/77] Compiling NautilusTelemetry V1HistogramDataPoint.swift
[31/77] Compiling NautilusTelemetry V1InstrumentationLibraryMetrics.swift
[32/77] Compiling NautilusTelemetry V1Metric.swift
[33/77] Compiling NautilusTelemetry V1NumberDataPoint.swift
[34/77] Compiling NautilusTelemetry V1ResourceMetrics.swift
[35/77] Compiling NautilusTelemetry V1StringKeyValue.swift
[36/77] Compiling NautilusTelemetry V1Sum.swift
[37/77] Compiling NautilusTelemetry V1Summary.swift
[38/77] Compiling NautilusTelemetry V1SummaryDataPoint.swift
[39/77] Compiling NautilusTelemetry OTLP.swift
[40/77] Compiling NautilusTelemetry SpanEvent.swift
[41/77] Compiling NautilusTelemetry SpanLink.swift
[42/77] Compiling NautilusTelemetry SpanSpanKind.swift
[43/77] Compiling NautilusTelemetry StatusStatusCode.swift
[44/77] Compiling NautilusTelemetry V1ExportTraceServiceRequest.swift
[45/77] Compiling NautilusTelemetry V1InstrumentationLibrarySpans.swift
[46/77] Compiling NautilusTelemetry V1ResourceSpans.swift
[47/77] Compiling NautilusTelemetry Compression.swift
[48/77] Compiling NautilusTelemetry Exporter+Logs.swift
[49/77] Compiling NautilusTelemetry Exporter+Metrics.swift
[50/77] Compiling NautilusTelemetry Exporter+Trace.swift
[51/77] Compiling NautilusTelemetry Exporter.swift
[52/77] Compiling NautilusTelemetry ProtobufAny.swift
[53/77] Compiling NautilusTelemetry RuntimeError.swift
[54/77] Compiling NautilusTelemetry V1AnyValue.swift
[55/77] Compiling NautilusTelemetry Histogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[56/77] Compiling NautilusTelemetry HistogramValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[57/77] Compiling NautilusTelemetry Instrument.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[58/77] Compiling NautilusTelemetry Meter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[59/77] Compiling NautilusTelemetry MetricValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[60/77] Compiling NautilusTelemetry ObservableCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[61/77] Compiling NautilusTelemetry ObservableGauge.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Metrics/Meter.swift:17:13: warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | // Used for protecting *Values structures
17 | static let valueLock = UnfairLock()
| |- warning: static property 'valueLock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'valueLock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
[62/77] Compiling NautilusTelemetry V1ResourceLogs.swift
[63/77] Compiling NautilusTelemetry V1SeverityNumber.swift
[64/77] Compiling NautilusTelemetry ExponentialHistogramDataPointBuckets.swift
[65/77] Compiling NautilusTelemetry SummaryDataPointValueAtQuantile.swift
[66/77] Compiling NautilusTelemetry V1AggregationTemporality.swift
[67/77] Compiling NautilusTelemetry V1Exemplar.swift
[68/77] Compiling NautilusTelemetry V1ExponentialHistogram.swift
[69/77] Compiling NautilusTelemetry Baggage.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[70/77] Compiling NautilusTelemetry Span.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[71/77] Compiling NautilusTelemetry Tracer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[72/77] Compiling NautilusTelemetry AbsoluteTime.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[73/77] Compiling NautilusTelemetry Identifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[74/77] Compiling NautilusTelemetry Sampling.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[75/77] Compiling NautilusTelemetry UnfairLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:12:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
12 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Experimental thread-bound baggage
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
macro expansion @TaskLocal:1:12: warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$currentBaggageTaskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Baggage?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$currentBaggageTaskLocal' with '@MainActor' if property should only be accessed from the main actor
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:12: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:1:60: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $currentBaggageTaskLocal: TaskLocal<Baggage?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
33 | #endif
34 |
macro expansion @TaskLocal:3:34: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:32:57: note: expanded code originates here
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
:
30 |
31 | #if compiler(>=5.6.0) && canImport(_Concurrency)
32 | @TaskLocal static var currentBaggageTaskLocal: Baggage?
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $currentBaggageTaskLocal.get()
| | `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
33 | #endif
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:11:13: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public final class Tracer {
11 | static let lock = UnfairLock()
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'UnfairLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | var currentBaggage: Baggage {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/UnfairLock.swift:18:20: note: class 'UnfairLock' does not conform to the 'Sendable' protocol
16 | /// - Does not allow you to lock and unlock from different threads
17 | /// - Is only recommended for protecting small critical sections
18 | public final class UnfairLock {
| `- note: class 'UnfairLock' does not conform to the 'Sendable' protocol
19 | // Thread sanitizer didn't like the old implementation
20 | // See http://www.russbishop.net/the-law for explanation
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:19: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
17 | #endif
18 |
19 | static public private(set) var reporter: Reporter? = 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: annotate 'reporter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | public static func bootstrap(reporter _reporter: Reporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:132:47: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | // Still need to set the task local if possible
131 | #if compiler(>=5.6.0) && canImport(_Concurrency)
132 | return try Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
133 | do {
134 | return try block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:169:53: warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
167 |
168 | let baggage = Baggage(span: span)
169 | return try await Baggage.$currentBaggageTaskLocal.withValue(baggage) {
| `- warning: type 'Baggage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
170 | do {
171 | return try await block()
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Baggage.swift:11:20: note: class 'Baggage' does not conform to the 'Sendable' protocol
9 |
10 | /// Implemented as NSObject, so we can be stored in threadDictionary
11 | public final class Baggage: NSObject {
| `- note: class 'Baggage' does not conform to the 'Sendable' protocol
12 | static let lock = UnfairLock()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:23:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | internal struct Identifiers {
22 | // MARK: utilities
23 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Generates a 128 session GUID
[75/77] Write Objects.LinkFileList
[76/77] Archiving libNautilusTelemetry.a
Build complete! (21.15s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NautilusTelemetry",
"name" : "NautilusTelemetry",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.4"
},
{
"name" : "tvos",
"version" : "13.4"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "NautilusTelemetry",
"targets" : [
"NautilusTelemetry"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "NautilusTelemetryTests",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetryTests",
"path" : "Tests/NautilusTelemetryTests",
"sources" : [
"AbsoluteTimeTests.swift",
"CompressionTests.swift",
"ExporterTests.swift",
"HardwareDetailsTests.swift",
"IdentifiersTests.swift",
"MeterTests.swift",
"MetricExporterTests.swift",
"ProcessDetailsTests.swift",
"ReporterTests.swift",
"ResourceAttributesTests.swift",
"SamplerTests.swift",
"SpanTests.swift",
"TestDataNormalization.swift",
"TimeReferenceTests.swift",
"TraceExporterTests.swift",
"UnfairLockTest.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "test"
},
{
"c99name" : "NautilusTelemetry",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetry",
"path" : "Sources/NautilusTelemetry",
"product_memberships" : [
"NautilusTelemetry"
],
"sources" : [
"Compression/Compression.swift",
"Exporters/Exporter+Logs.swift",
"Exporters/Exporter+Metrics.swift",
"Exporters/Exporter+Trace.swift",
"Exporters/Exporter.swift",
"Exporters/OTLP-JSON/Common/ProtobufAny.swift",
"Exporters/OTLP-JSON/Common/RuntimeError.swift",
"Exporters/OTLP-JSON/Common/V1AnyValue.swift",
"Exporters/OTLP-JSON/Common/V1ArrayValue.swift",
"Exporters/OTLP-JSON/Common/V1InstrumentationLibrary.swift",
"Exporters/OTLP-JSON/Common/V1KeyValue.swift",
"Exporters/OTLP-JSON/Common/V1KeyValueList.swift",
"Exporters/OTLP-JSON/Common/V1Resource.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceRequest.swift",
"Exporters/OTLP-JSON/Logs/V1InstrumentationLibraryLogs.swift",
"Exporters/OTLP-JSON/Logs/V1LogRecord.swift",
"Exporters/OTLP-JSON/Logs/V1ResourceLogs.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/V1ExportMetricsServiceRequest.swift",
"Exporters/OTLP-JSON/Metrics/V1Gauge.swift",
"Exporters/OTLP-JSON/Metrics/V1Histogram.swift",
"Exporters/OTLP-JSON/Metrics/V1HistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1InstrumentationLibraryMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1Metric.swift",
"Exporters/OTLP-JSON/Metrics/V1NumberDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ResourceMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1StringKeyValue.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/V1ExportTraceServiceRequest.swift",
"Exporters/OTLP-JSON/Trace/V1InstrumentationLibrarySpans.swift",
"Exporters/OTLP-JSON/Trace/V1ResourceSpans.swift",
"Exporters/OTLP-JSON/Trace/V1Span.swift",
"Exporters/OTLP-JSON/Trace/V1Status.swift",
"Instrumentation/HardwareDetails.swift",
"Instrumentation/InstrumentationSystem.swift",
"Instrumentation/MetricKitInstrument.swift",
"Instrumentation/ProcessDetails.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",
"Reporters/ExampleReporter.swift",
"Reporters/NoOpReporter.swift",
"Reporters/Reporter.swift",
"ResourceAttributes.swift",
"Tracing/Baggage.swift",
"Tracing/Span.swift",
"Tracing/Tracer.swift",
"Utilities/AbsoluteTime.swift",
"Utilities/Identifiers.swift",
"Utilities/Sampling.swift",
"Utilities/UnfairLock.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.