Build Information
Successful build of NautilusTelemetry, reference v1.4.5 (428972
), with Swift 6.1 for macOS (SPM) on 27 Jun 2025 18:58:26 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/airbnb/NautilusTelemetry.git
Reference: v1.4.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/airbnb/NautilusTelemetry
* tag v1.4.5 -> FETCH_HEAD
HEAD is now at 4289727 Merge pull request #31 from airbnb/lvt-fix-remote-address
Cloned https://github.com/airbnb/NautilusTelemetry.git
Revision (git rev-parse @):
428972741703ccfd387548ec8ed188b54e0a0421
SUCCESS checkout https://github.com/airbnb/NautilusTelemetry.git at v1.4.5
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "nautilustelemetry",
"name": "NautilusTelemetry",
"url": "https://github.com/airbnb/NautilusTelemetry.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NautilusTelemetry",
"dependencies": [
]
}
]
}
Fetching https://github.com/airbnb/NautilusTelemetry.git
[1/956] Fetching nautilustelemetry
Fetched https://github.com/airbnb/NautilusTelemetry.git from cache (0.80s)
Creating working copy for https://github.com/airbnb/NautilusTelemetry.git
Working copy of https://github.com/airbnb/NautilusTelemetry.git resolved at v1.4.5 (4289727)
warning: '.resolve-product-dependencies': dependency 'nautilustelemetry' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/airbnb/NautilusTelemetry.git
https://github.com/airbnb/NautilusTelemetry.git
{
"dependencies" : [
],
"manifest_display_name" : "NautilusTelemetry",
"name" : "NautilusTelemetry",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "NautilusTelemetry",
"targets" : [
"NautilusTelemetry"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SampleCode",
"targets" : [
"SampleCode"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "SampleCode",
"module_type" : "SwiftTarget",
"name" : "SampleCode",
"path" : "Sources/SampleCode",
"product_memberships" : [
"SampleCode"
],
"sources" : [
"ExampleReporter.swift",
"SampleCodeLogger.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "library"
},
{
"c99name" : "NautilusTelemetryTests",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetryTests",
"path" : "Tests/NautilusTelemetryTests",
"sources" : [
"CompressionTests.swift",
"ExporterTests.swift",
"HardwareDetailsTests.swift",
"IdentifiersTests.swift",
"MeterTests.swift",
"MetricExporterTests.swift",
"ProcessDetailsTests.swift",
"ReporterTests.swift",
"ResourceAttributesTests.swift",
"SamplerTests.swift",
"Span+URLSessionTests.swift",
"SpanTests.swift",
"TestDataNormalization.swift",
"TimeReferenceTests.swift",
"TraceExporterTests.swift",
"Tracer+URLRequestTests.swift",
"URLTemplateMatcherTests.swift",
"XCTestCase+Leaks.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "test"
},
{
"c99name" : "NautilusTelemetry",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetry",
"path" : "Sources/NautilusTelemetry",
"product_memberships" : [
"NautilusTelemetry",
"SampleCode"
],
"sources" : [
"Compression/Compression.swift",
"Exporters/Exporter+Logs.swift",
"Exporters/Exporter+Metrics.swift",
"Exporters/Exporter+Trace.swift",
"Exporters/Exporter.swift",
"Exporters/OTLP-JSON/Common/V1AnyValue.swift",
"Exporters/OTLP-JSON/Common/V1ArrayValue.swift",
"Exporters/OTLP-JSON/Common/V1InstrumentationScope.swift",
"Exporters/OTLP-JSON/Common/V1KeyValue.swift",
"Exporters/OTLP-JSON/Common/V1KeyValueList.swift",
"Exporters/OTLP-JSON/Common/V1Resource.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsPartialSuccess.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceRequest.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceResponse.swift",
"Exporters/OTLP-JSON/Logs/V1LogRecord.swift",
"Exporters/OTLP-JSON/Logs/V1ResourceLogs.swift",
"Exporters/OTLP-JSON/Logs/V1ScopeLogs.swift",
"Exporters/OTLP-JSON/Logs/V1SeverityNumber.swift",
"Exporters/OTLP-JSON/Metrics/ExponentialHistogramDataPointBuckets.swift",
"Exporters/OTLP-JSON/Metrics/SummaryDataPointValueAtQuantile.swift",
"Exporters/OTLP-JSON/Metrics/V1AggregationTemporality.swift",
"Exporters/OTLP-JSON/Metrics/V1Exemplar.swift",
"Exporters/OTLP-JSON/Metrics/V1ExponentialHistogram.swift",
"Exporters/OTLP-JSON/Metrics/V1ExponentialHistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsPartialSuccess.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsServiceRequest.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsServiceResponse.swift",
"Exporters/OTLP-JSON/Metrics/V1Gauge.swift",
"Exporters/OTLP-JSON/Metrics/V1Histogram.swift",
"Exporters/OTLP-JSON/Metrics/V1HistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1Metric.swift",
"Exporters/OTLP-JSON/Metrics/V1NumberDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ResourceMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1ScopeMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1Sum.swift",
"Exporters/OTLP-JSON/Metrics/V1Summary.swift",
"Exporters/OTLP-JSON/Metrics/V1SummaryDataPoint.swift",
"Exporters/OTLP-JSON/OTLP.swift",
"Exporters/OTLP-JSON/Trace/SpanEvent.swift",
"Exporters/OTLP-JSON/Trace/SpanLink.swift",
"Exporters/OTLP-JSON/Trace/SpanSpanKind.swift",
"Exporters/OTLP-JSON/Trace/StatusStatusCode.swift",
"Exporters/OTLP-JSON/Trace/Tracev1Status.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTracePartialSuccess.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTraceServiceRequest.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTraceServiceResponse.swift",
"Exporters/OTLP-JSON/Trace/V1ResourceSpans.swift",
"Exporters/OTLP-JSON/Trace/V1ScopeSpans.swift",
"Exporters/OTLP-JSON/Trace/V1Span.swift",
"Instrumentation/HardwareDetails.swift",
"Instrumentation/InstrumentationSystem.swift",
"Instrumentation/MetricKitInstrument.swift",
"Instrumentation/ProcessDetails.swift",
"Metrics/Counter.swift",
"Metrics/Histogram.swift",
"Metrics/HistogramValues.swift",
"Metrics/Instrument.swift",
"Metrics/Meter.swift",
"Metrics/MetricValues.swift",
"Metrics/ObservableCounter.swift",
"Metrics/ObservableGauge.swift",
"Metrics/ObservableUpDownCounter.swift",
"Metrics/UpDownCounter.swift",
"NautilusTelemetry.swift",
"NautilusTelemetryLogger.swift",
"Reporters/NautilusTelemetryReporter.swift",
"Reporters/NoOpReporter.swift",
"ResourceAttributes.swift",
"Tracing/Baggage.swift",
"Tracing/Span+URLSession.swift",
"Tracing/Span.swift",
"Tracing/Tracer+URLRequest.swift",
"Tracing/Tracer.swift",
"Tracing/URLTemplateMatcher.swift",
"Utilities/Identifiers.swift",
"Utilities/Sampling.swift",
"Utilities/TimeReference.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-2F0A5646E1D333AE.txt
[4/78] Emitting module NautilusTelemetry
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
[5/85] Compiling NautilusTelemetry V1KeyValue.swift
[6/85] Compiling NautilusTelemetry V1KeyValueList.swift
[7/85] Compiling NautilusTelemetry V1Resource.swift
[8/85] Compiling NautilusTelemetry V1ExportLogsPartialSuccess.swift
[9/85] Compiling NautilusTelemetry V1ExportLogsServiceRequest.swift
[10/85] Compiling NautilusTelemetry V1ExportLogsServiceResponse.swift
[11/85] Compiling NautilusTelemetry V1LogRecord.swift
[12/85] Compiling NautilusTelemetry V1ResourceLogs.swift
[13/85] Compiling NautilusTelemetry Compression.swift
[14/85] Compiling NautilusTelemetry Exporter+Logs.swift
[15/85] Compiling NautilusTelemetry Exporter+Metrics.swift
[16/85] Compiling NautilusTelemetry Exporter+Trace.swift
[17/85] Compiling NautilusTelemetry Exporter.swift
[18/85] Compiling NautilusTelemetry V1AnyValue.swift
[19/85] Compiling NautilusTelemetry V1ArrayValue.swift
[20/85] Compiling NautilusTelemetry V1InstrumentationScope.swift
[21/85] Compiling NautilusTelemetry Span.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[22/85] Compiling NautilusTelemetry Tracer+URLRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[23/85] Compiling NautilusTelemetry Tracer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[24/85] Compiling NautilusTelemetry URLTemplateMatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[25/85] Compiling NautilusTelemetry Identifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[26/85] Compiling NautilusTelemetry Sampling.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[27/85] Compiling NautilusTelemetry TimeReference.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:35:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
33 |
34 | Tracer.lock.withLock {
35 | traceId = Identifiers.generateTraceId()
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
36 | root = Span(name: "root", traceId: traceId, parentId: nil, retireCallback: retire)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:4: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:215:24: warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
213 | func retire(span: Span) {
214 | Tracer.lock.withLock {
215 | retiredSpans.append(span)
| `- warning: capture of 'span' with non-sendable type 'Span' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:220:43: warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
218 |
219 | func flushRetiredSpans() {
220 | let spansToReport: [Span] = Tracer.lock.withLock {
| `- warning: type 'Span' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
221 | // copy and empty the array.
222 | let spans = retiredSpans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Span.swift:26:20: note: class 'Span' does not conform to the 'Sendable' protocol
24 | /// Implements a pared down version of the spec
25 | /// Not thread safe -- it's assumed that Span will only be modified from a single thread.
26 | public final class Span: Identifiable {
| `- note: class 'Span' does not conform to the 'Sendable' protocol
27 |
28 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/Tracer.swift:222:16: warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
9 | import os
10 |
11 | public final class Tracer {
| `- note: class 'Tracer' does not conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
220 | let spansToReport: [Span] = Tracer.lock.withLock {
221 | // copy and empty the array.
222 | let spans = retiredSpans
| `- warning: capture of 'self' with non-sendable type 'Tracer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
223 | retiredSpans.removeAll()
224 | return spans
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Tracing/URLTemplateMatcher.swift:168:21: warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
166 |
167 | /// Regex for matching parameters like {} and {id} in both path and query
168 | private static let parameterRegex = /\{[a-zA-Z0-9-_]*\}/
| |- warning: static property 'parameterRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'parameterRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 |
170 | private let pathRegex: Regex<Substring>
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Identifiers.swift:61:21: warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | // MARK: utilities
61 | private static var random = SystemRandomNumberGenerator()
| |- warning: static property 'random' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'random' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'random' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:57:20: warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
:
55 | // actors would be great here!
56 | get {
57 | lock.withLock { _guid }
| `- warning: capture of 'self' with non-sendable type 'StableGuidSampler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
58 | }
59 |
[28/85] Compiling NautilusTelemetry SpanSpanKind.swift
[29/85] Compiling NautilusTelemetry StatusStatusCode.swift
[30/85] Compiling NautilusTelemetry Tracev1Status.swift
[31/85] Compiling NautilusTelemetry V1ExportTracePartialSuccess.swift
[32/85] Compiling NautilusTelemetry V1ExportTraceServiceRequest.swift
[33/85] Compiling NautilusTelemetry V1ExportTraceServiceResponse.swift
[34/85] Compiling NautilusTelemetry V1ResourceSpans.swift
[35/85] Compiling NautilusTelemetry V1ScopeSpans.swift
[36/85] Compiling NautilusTelemetry V1ScopeLogs.swift
[37/85] Compiling NautilusTelemetry V1SeverityNumber.swift
[38/85] Compiling NautilusTelemetry ExponentialHistogramDataPointBuckets.swift
[39/85] Compiling NautilusTelemetry SummaryDataPointValueAtQuantile.swift
[40/85] Compiling NautilusTelemetry V1AggregationTemporality.swift
[41/85] Compiling NautilusTelemetry V1Exemplar.swift
[42/85] Compiling NautilusTelemetry V1ExponentialHistogram.swift
[43/85] Compiling NautilusTelemetry V1ExponentialHistogramDataPoint.swift
[44/85] Compiling NautilusTelemetry V1ResourceMetrics.swift
[45/85] Compiling NautilusTelemetry V1ScopeMetrics.swift
[46/85] Compiling NautilusTelemetry V1Sum.swift
[47/85] Compiling NautilusTelemetry V1Summary.swift
[48/85] Compiling NautilusTelemetry V1SummaryDataPoint.swift
[49/85] Compiling NautilusTelemetry OTLP.swift
[50/85] Compiling NautilusTelemetry SpanEvent.swift
[51/85] Compiling NautilusTelemetry SpanLink.swift
[52/85] Compiling NautilusTelemetry V1ExportMetricsPartialSuccess.swift
[53/85] Compiling NautilusTelemetry V1ExportMetricsServiceRequest.swift
[54/85] Compiling NautilusTelemetry V1ExportMetricsServiceResponse.swift
[55/85] Compiling NautilusTelemetry V1Gauge.swift
[56/85] Compiling NautilusTelemetry V1Histogram.swift
[57/85] Compiling NautilusTelemetry V1HistogramDataPoint.swift
[58/85] Compiling NautilusTelemetry V1Metric.swift
[59/85] Compiling NautilusTelemetry V1NumberDataPoint.swift
[60/85] Compiling NautilusTelemetry V1Span.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[61/85] Compiling NautilusTelemetry HardwareDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[62/85] Compiling NautilusTelemetry InstrumentationSystem.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[63/85] Compiling NautilusTelemetry MetricKitInstrument.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[64/85] Compiling NautilusTelemetry ProcessDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[65/85] Compiling NautilusTelemetry Counter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[66/85] Compiling NautilusTelemetry Histogram.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[67/85] Compiling NautilusTelemetry HistogramValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:14:20: warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | public static var platformCachedValue: String? = {
| |- warning: static property 'platformCachedValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'platformCachedValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'platformCachedValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | // This doesn't change after launch, so evaluate once.
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/HardwareDetails.swift:27:21: warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: Private
26 |
27 | private static var isOnMac: Bool = {
| |- warning: static property 'isOnMac' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isOnMac' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isOnMac' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | // This doesn't change after launch, so evaluate once.
29 | var isOnMac = false
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| |- warning: static property 'tracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tracer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:15:33: warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | static public private(set) var tracer = Tracer()
15 | static public private(set) var meter = Meter()
| |- warning: static property 'meter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'meter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'meter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:17:33: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static public private(set) var meter = Meter()
16 |
17 | static public private(set) var reporter: NautilusTelemetryReporter? = nil
| |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func bootstrap(reporter _reporter: NautilusTelemetryReporter) {
[68/85] Compiling NautilusTelemetry NautilusTelemetry.swift
[69/85] Compiling NautilusTelemetry NautilusTelemetryLogger.swift
[70/85] Compiling NautilusTelemetry NautilusTelemetryReporter.swift
[71/85] Compiling NautilusTelemetry NoOpReporter.swift
[72/85] Compiling NautilusTelemetry ResourceAttributes.swift
[73/85] Compiling NautilusTelemetry Baggage.swift
[74/85] Compiling NautilusTelemetry Span+URLSession.swift
[75/85] Compiling NautilusTelemetry Instrument.swift
[76/85] Compiling NautilusTelemetry Meter.swift
[77/85] Compiling NautilusTelemetry MetricValues.swift
[78/85] Compiling NautilusTelemetry ObservableCounter.swift
[79/85] Compiling NautilusTelemetry ObservableGauge.swift
[80/85] Compiling NautilusTelemetry ObservableUpDownCounter.swift
[81/85] Compiling NautilusTelemetry UpDownCounter.swift
[81/85] Write Objects.LinkFileList
[82/85] Archiving libNautilusTelemetry.a
[84/88] Compiling SampleCode SampleCodeLogger.swift
[85/88] Emitting module SampleCode
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:84:13: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | static let lock = OSAllocatedUnfairLock()
83 |
84 | static var userAgent: String = {
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | let bundle = Bundle.main
86 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:91:13: warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| `- warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:22:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
12 | import UIKit
13 | #endif
14 | import NautilusTelemetry
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
15 |
16 | // MARK: - ExampleReporter
:
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| |- note: add '@MainActor' to make static property 'sampler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:178:21: warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
176 | // MARK: Private
177 |
178 | static private var _sessionGUID: Data?
| |- warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sessionGUID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sessionGUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |
180 | }
[86/88] Compiling SampleCode ExampleReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:84:13: warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | static let lock = OSAllocatedUnfairLock()
83 |
84 | static var userAgent: String = {
| |- warning: static property 'userAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | let bundle = Bundle.main
86 | let bundleIdentifier = bundle.bundleIdentifier ?? "unknown"
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:91:13: warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| `- warning: static property 'sampler' is not concurrency-safe because non-'Sendable' type 'StableGuidSampler' may have shared mutable state; this is an error in the Swift 6 language mode
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Utilities/Sampling.swift:22:20: note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
20 | /// A sampler that is stable for a given GUID.
21 | /// Intended to be used for session-based sampling or similar use cases.
22 | public final class StableGuidSampler: Sampler {
| `- note: class 'StableGuidSampler' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
12 | import UIKit
13 | #endif
14 | import NautilusTelemetry
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NautilusTelemetry'
15 |
16 | // MARK: - ExampleReporter
:
89 | }()
90 |
91 | static let sampler = StableGuidSampler(sampleRate: 1.0, seed: Data("OpenTelemetry".utf8), guid: sessionGUID)
| |- note: add '@MainActor' to make static property 'sampler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | static var sessionGUID: Data {
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:178:21: warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
176 | // MARK: Private
177 |
178 | static private var _sessionGUID: Data?
| |- warning: static property '_sessionGUID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sessionGUID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sessionGUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:129:25: warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 | // MARK: Lifecycle events
128 | func didEnterBackground() {
129 | InstrumentationSystem.tracer.flushTrace()
| `- warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 | Self.resetSessionGUID()
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: note: static property declared here
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| `- note: static property declared here
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:149:80: warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
147 | }
148 |
149 | let traceIdString = Identifiers.hexEncodedString(data: InstrumentationSystem.tracer.currentSpan.traceId)
| `- warning: reference to static property 'tracer' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
150 | var urlRequest = URLRequest(url: url)
151 | urlRequest.httpBody = compressedPayload
/Users/admin/builder/spi-builder-workspace/Sources/NautilusTelemetry/Instrumentation/InstrumentationSystem.swift:14:33: note: static property declared here
12 | // MARK: Public
13 |
14 | static public private(set) var tracer = Tracer()
| `- note: static property declared here
15 | static public private(set) var meter = Meter()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/SampleCode/ExampleReporter.swift:156:7: warning: capture of 'self' with non-sendable type 'ExampleReporter' in a '@Sendable' closure
18 | /// An example telemetry reporter. Intended to be modified for specific use cases.
19 | @available(iOS 13.0, *)
20 | public class ExampleReporter: NautilusTelemetryReporter {
| `- note: class 'ExampleReporter' does not conform to the 'Sendable' protocol
21 |
22 | // MARK: Lifecycle
:
154 | urlRequest.addValue(contentEncoding, forHTTPHeaderField: "Content-Encoding")
155 | let task = urlSession.dataTask(with: urlRequest) { _, urlResponse, error in
156 | if self.success(urlResponse) {
| `- warning: capture of 'self' with non-sendable type 'ExampleReporter' in a '@Sendable' closure
157 | logger.debug("\(url): success, traceId = \(traceIdString)")
158 | } else {
[86/88] Write Objects.LinkFileList
[87/88] Archiving libSampleCode.a
Build complete! (6.05s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NautilusTelemetry",
"name" : "NautilusTelemetry",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "NautilusTelemetry",
"targets" : [
"NautilusTelemetry"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "SampleCode",
"targets" : [
"SampleCode"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "SampleCode",
"module_type" : "SwiftTarget",
"name" : "SampleCode",
"path" : "Sources/SampleCode",
"product_memberships" : [
"SampleCode"
],
"sources" : [
"ExampleReporter.swift",
"SampleCodeLogger.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "library"
},
{
"c99name" : "NautilusTelemetryTests",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetryTests",
"path" : "Tests/NautilusTelemetryTests",
"sources" : [
"CompressionTests.swift",
"ExporterTests.swift",
"HardwareDetailsTests.swift",
"IdentifiersTests.swift",
"MeterTests.swift",
"MetricExporterTests.swift",
"ProcessDetailsTests.swift",
"ReporterTests.swift",
"ResourceAttributesTests.swift",
"SamplerTests.swift",
"Span+URLSessionTests.swift",
"SpanTests.swift",
"TestDataNormalization.swift",
"TimeReferenceTests.swift",
"TraceExporterTests.swift",
"Tracer+URLRequestTests.swift",
"URLTemplateMatcherTests.swift",
"XCTestCase+Leaks.swift"
],
"target_dependencies" : [
"NautilusTelemetry"
],
"type" : "test"
},
{
"c99name" : "NautilusTelemetry",
"module_type" : "SwiftTarget",
"name" : "NautilusTelemetry",
"path" : "Sources/NautilusTelemetry",
"product_memberships" : [
"NautilusTelemetry",
"SampleCode"
],
"sources" : [
"Compression/Compression.swift",
"Exporters/Exporter+Logs.swift",
"Exporters/Exporter+Metrics.swift",
"Exporters/Exporter+Trace.swift",
"Exporters/Exporter.swift",
"Exporters/OTLP-JSON/Common/V1AnyValue.swift",
"Exporters/OTLP-JSON/Common/V1ArrayValue.swift",
"Exporters/OTLP-JSON/Common/V1InstrumentationScope.swift",
"Exporters/OTLP-JSON/Common/V1KeyValue.swift",
"Exporters/OTLP-JSON/Common/V1KeyValueList.swift",
"Exporters/OTLP-JSON/Common/V1Resource.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsPartialSuccess.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceRequest.swift",
"Exporters/OTLP-JSON/Logs/V1ExportLogsServiceResponse.swift",
"Exporters/OTLP-JSON/Logs/V1LogRecord.swift",
"Exporters/OTLP-JSON/Logs/V1ResourceLogs.swift",
"Exporters/OTLP-JSON/Logs/V1ScopeLogs.swift",
"Exporters/OTLP-JSON/Logs/V1SeverityNumber.swift",
"Exporters/OTLP-JSON/Metrics/ExponentialHistogramDataPointBuckets.swift",
"Exporters/OTLP-JSON/Metrics/SummaryDataPointValueAtQuantile.swift",
"Exporters/OTLP-JSON/Metrics/V1AggregationTemporality.swift",
"Exporters/OTLP-JSON/Metrics/V1Exemplar.swift",
"Exporters/OTLP-JSON/Metrics/V1ExponentialHistogram.swift",
"Exporters/OTLP-JSON/Metrics/V1ExponentialHistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsPartialSuccess.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsServiceRequest.swift",
"Exporters/OTLP-JSON/Metrics/V1ExportMetricsServiceResponse.swift",
"Exporters/OTLP-JSON/Metrics/V1Gauge.swift",
"Exporters/OTLP-JSON/Metrics/V1Histogram.swift",
"Exporters/OTLP-JSON/Metrics/V1HistogramDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1Metric.swift",
"Exporters/OTLP-JSON/Metrics/V1NumberDataPoint.swift",
"Exporters/OTLP-JSON/Metrics/V1ResourceMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1ScopeMetrics.swift",
"Exporters/OTLP-JSON/Metrics/V1Sum.swift",
"Exporters/OTLP-JSON/Metrics/V1Summary.swift",
"Exporters/OTLP-JSON/Metrics/V1SummaryDataPoint.swift",
"Exporters/OTLP-JSON/OTLP.swift",
"Exporters/OTLP-JSON/Trace/SpanEvent.swift",
"Exporters/OTLP-JSON/Trace/SpanLink.swift",
"Exporters/OTLP-JSON/Trace/SpanSpanKind.swift",
"Exporters/OTLP-JSON/Trace/StatusStatusCode.swift",
"Exporters/OTLP-JSON/Trace/Tracev1Status.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTracePartialSuccess.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTraceServiceRequest.swift",
"Exporters/OTLP-JSON/Trace/V1ExportTraceServiceResponse.swift",
"Exporters/OTLP-JSON/Trace/V1ResourceSpans.swift",
"Exporters/OTLP-JSON/Trace/V1ScopeSpans.swift",
"Exporters/OTLP-JSON/Trace/V1Span.swift",
"Instrumentation/HardwareDetails.swift",
"Instrumentation/InstrumentationSystem.swift",
"Instrumentation/MetricKitInstrument.swift",
"Instrumentation/ProcessDetails.swift",
"Metrics/Counter.swift",
"Metrics/Histogram.swift",
"Metrics/HistogramValues.swift",
"Metrics/Instrument.swift",
"Metrics/Meter.swift",
"Metrics/MetricValues.swift",
"Metrics/ObservableCounter.swift",
"Metrics/ObservableGauge.swift",
"Metrics/ObservableUpDownCounter.swift",
"Metrics/UpDownCounter.swift",
"NautilusTelemetry.swift",
"NautilusTelemetryLogger.swift",
"Reporters/NautilusTelemetryReporter.swift",
"Reporters/NoOpReporter.swift",
"ResourceAttributes.swift",
"Tracing/Baggage.swift",
"Tracing/Span+URLSession.swift",
"Tracing/Span.swift",
"Tracing/Tracer+URLRequest.swift",
"Tracing/Tracer.swift",
"Tracing/URLTemplateMatcher.swift",
"Utilities/Identifiers.swift",
"Utilities/Sampling.swift",
"Utilities/TimeReference.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.