Build Information
Failed to build opentelemetry-swift, reference 1.11.0 (8da9ef
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 17:37:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
34 | let metricName: String
35 | let metricType: MetricType = .gauge
36 | let counter: AnyCounterMetric<Double>
| `- warning: stored property 'counter' of 'Sendable'-conforming class 'SwiftGaugeMetric' has non-sendable type 'AnyCounterMetric<Double>'; this is an error in the Swift 6 language mode
37 | let labels: [String: String]
38 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Sum/CounterMetric.swift:38:15: note: generic struct 'AnyCounterMetric' does not conform to the 'Sendable' protocol
36 | func bind(labels: [String: String]) -> BoundCounterMetric<T>
37 | }
38 | public struct AnyCounterMetric<T>: CounterMetric {
| `- note: generic struct 'AnyCounterMetric' does not conform to the 'Sendable' protocol
39 | let internalCounter: Any
40 | private let _addLabelSet: (T, LabelSet) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:55:7: warning: non-final class 'SwiftHistogramMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
53 | }
54 |
55 | class SwiftHistogramMetric: RecorderHandler, SwiftMetric {
| `- warning: non-final class 'SwiftHistogramMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
56 |
57 | let metricName: String
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:59:9: warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftHistogramMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
57 | let metricName: String
58 | let metricType: MetricType = .histogram
59 | let measure: AnyMeasureMetric<Double>
| `- warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftHistogramMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
60 | let labels: [String: String]
61 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Gauge/MeasureMetric.swift:43:15: note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
41 | }
42 |
43 | public struct AnyMeasureMetric<T>: MeasureMetric {
| `- note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
44 | private let _bindLabelSet: (LabelSet) -> BoundMeasureMetric<T>
45 | private let _bindLabels: ([String: String]) -> BoundMeasureMetric<T>
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:78:7: warning: non-final class 'SwiftSummaryMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
76 | }
77 |
78 | class SwiftSummaryMetric: TimerHandler, SwiftMetric {
| `- warning: non-final class 'SwiftSummaryMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
79 |
80 | let metricName: String
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:82:9: warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftSummaryMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
80 | let metricName: String
81 | let metricType: MetricType = .summary
82 | let measure: AnyMeasureMetric<Double>
| `- warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftSummaryMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
83 | let labels: [String: String]
84 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Gauge/MeasureMetric.swift:43:15: note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
41 | }
42 |
43 | public struct AnyMeasureMetric<T>: MeasureMetric {
| `- note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
44 | private let _bindLabelSet: (LabelSet) -> BoundMeasureMetric<T>
45 | private let _bindLabels: ([String: String]) -> BoundMeasureMetric<T>
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/SwiftMetricsShim.swift:9:14: warning: non-final class 'OpenTelemetrySwiftMetrics' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
7 | import OpenTelemetryApi
8 |
9 | public class OpenTelemetrySwiftMetrics: MetricsFactory {
| `- warning: non-final class 'OpenTelemetrySwiftMetrics' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | internal let meter: OpenTelemetryApi.Meter
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/SwiftMetricsShim.swift:11:18: warning: stored property 'meter' of 'Sendable'-conforming class 'OpenTelemetrySwiftMetrics' has non-sendable type 'any Meter'; this is an error in the Swift 6 language mode
9 | public class OpenTelemetrySwiftMetrics: MetricsFactory {
10 |
11 | internal let meter: OpenTelemetryApi.Meter
| `- warning: stored property 'meter' of 'Sendable'-conforming class 'OpenTelemetrySwiftMetrics' has non-sendable type 'any Meter'; this is an error in the Swift 6 language mode
12 | internal var metrics = [MetricKey: SwiftMetric]()
13 | internal let lock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Meter.swift:13:17: note: protocol 'Meter' does not conform to the 'Sendable' protocol
11 | // Phase 2
12 | //@available(*, deprecated, renamed: "StableMeter")
13 | public protocol Meter {
| `- note: protocol 'Meter' does not conform to the 'Sendable' protocol
14 |
15 | /// Creates Int counter with given name.
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/SwiftMetricsShim.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OpenTelemetryApi'
5 |
6 | import CoreMetrics
7 | import OpenTelemetryApi
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OpenTelemetryApi'
8 |
9 | public class OpenTelemetrySwiftMetrics: MetricsFactory {
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/SwiftMetricsShim.swift:12:18: warning: stored property 'metrics' of 'Sendable'-conforming class 'OpenTelemetrySwiftMetrics' is mutable; this is an error in the Swift 6 language mode
10 |
11 | internal let meter: OpenTelemetryApi.Meter
12 | internal var metrics = [MetricKey: SwiftMetric]()
| `- warning: stored property 'metrics' of 'Sendable'-conforming class 'OpenTelemetrySwiftMetrics' is mutable; this is an error in the Swift 6 language mode
13 | internal let lock = Lock()
14 |
[1039/1149] Compiling SwiftMetricsShim MetricHandlers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:9:7: warning: non-final class 'SwiftCounterMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
7 | import OpenTelemetryApi
8 |
9 | class SwiftCounterMetric: CounterHandler, SwiftMetric {
| `- warning: non-final class 'SwiftCounterMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | let metricName: String
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:13:9: warning: stored property 'counter' of 'Sendable'-conforming class 'SwiftCounterMetric' has non-sendable type 'AnyCounterMetric<Int>'; this is an error in the Swift 6 language mode
11 | let metricName: String
12 | let metricType: MetricType = .counter
13 | let counter: AnyCounterMetric<Int>
| `- warning: stored property 'counter' of 'Sendable'-conforming class 'SwiftCounterMetric' has non-sendable type 'AnyCounterMetric<Int>'; this is an error in the Swift 6 language mode
14 | let labels: [String: String]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Sum/CounterMetric.swift:38:15: note: generic struct 'AnyCounterMetric' does not conform to the 'Sendable' protocol
36 | func bind(labels: [String: String]) -> BoundCounterMetric<T>
37 | }
38 | public struct AnyCounterMetric<T>: CounterMetric {
| `- note: generic struct 'AnyCounterMetric' does not conform to the 'Sendable' protocol
39 | let internalCounter: Any
40 | private let _addLabelSet: (T, LabelSet) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OpenTelemetryApi'
5 |
6 | import CoreMetrics
7 | import OpenTelemetryApi
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OpenTelemetryApi'
8 |
9 | class SwiftCounterMetric: CounterHandler, SwiftMetric {
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:32:7: warning: non-final class 'SwiftGaugeMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 | }
31 |
32 | class SwiftGaugeMetric: RecorderHandler, SwiftMetric {
| `- warning: non-final class 'SwiftGaugeMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 |
34 | let metricName: String
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:36:9: warning: stored property 'counter' of 'Sendable'-conforming class 'SwiftGaugeMetric' has non-sendable type 'AnyCounterMetric<Double>'; this is an error in the Swift 6 language mode
34 | let metricName: String
35 | let metricType: MetricType = .gauge
36 | let counter: AnyCounterMetric<Double>
| `- warning: stored property 'counter' of 'Sendable'-conforming class 'SwiftGaugeMetric' has non-sendable type 'AnyCounterMetric<Double>'; this is an error in the Swift 6 language mode
37 | let labels: [String: String]
38 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Sum/CounterMetric.swift:38:15: note: generic struct 'AnyCounterMetric' does not conform to the 'Sendable' protocol
36 | func bind(labels: [String: String]) -> BoundCounterMetric<T>
37 | }
38 | public struct AnyCounterMetric<T>: CounterMetric {
| `- note: generic struct 'AnyCounterMetric' does not conform to the 'Sendable' protocol
39 | let internalCounter: Any
40 | private let _addLabelSet: (T, LabelSet) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:55:7: warning: non-final class 'SwiftHistogramMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
53 | }
54 |
55 | class SwiftHistogramMetric: RecorderHandler, SwiftMetric {
| `- warning: non-final class 'SwiftHistogramMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
56 |
57 | let metricName: String
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:59:9: warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftHistogramMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
57 | let metricName: String
58 | let metricType: MetricType = .histogram
59 | let measure: AnyMeasureMetric<Double>
| `- warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftHistogramMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
60 | let labels: [String: String]
61 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Gauge/MeasureMetric.swift:43:15: note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
41 | }
42 |
43 | public struct AnyMeasureMetric<T>: MeasureMetric {
| `- note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
44 | private let _bindLabelSet: (LabelSet) -> BoundMeasureMetric<T>
45 | private let _bindLabels: ([String: String]) -> BoundMeasureMetric<T>
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:78:7: warning: non-final class 'SwiftSummaryMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
76 | }
77 |
78 | class SwiftSummaryMetric: TimerHandler, SwiftMetric {
| `- warning: non-final class 'SwiftSummaryMetric' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
79 |
80 | let metricName: String
/Users/admin/builder/spi-builder-workspace/Sources/Importers/SwiftMetricsShim/MetricHandlers.swift:82:9: warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftSummaryMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
80 | let metricName: String
81 | let metricType: MetricType = .summary
82 | let measure: AnyMeasureMetric<Double>
| `- warning: stored property 'measure' of 'Sendable'-conforming class 'SwiftSummaryMetric' has non-sendable type 'AnyMeasureMetric<Double>'; this is an error in the Swift 6 language mode
83 | let labels: [String: String]
84 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Metrics/Instruments/Gauge/MeasureMetric.swift:43:15: note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
41 | }
42 |
43 | public struct AnyMeasureMetric<T>: MeasureMetric {
| `- note: generic struct 'AnyMeasureMetric' does not conform to the 'Sendable' protocol
44 | private let _bindLabelSet: (LabelSet) -> BoundMeasureMetric<T>
45 | private let _bindLabels: ([String: String]) -> BoundMeasureMetric<T>
[1040/1158] Compiling OpenTracingShim TelemetryInfo.swift
[1041/1158] Compiling OpenTracingShim SpanShim.swift
/Users/admin/builder/spi-builder-workspace/Sources/Importers/OpenTracingShim/TraceShim.swift:12:23: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public class TraceShim {
12 | public static var instance = TraceShim()
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public private(set) var otTracer: OTTracer
[1042/1158] Compiling OpenTracingShim SpanContextShimTable.swift
[1043/1158] Compiling OpenTracingShim TraceShim.swift
/Users/admin/builder/spi-builder-workspace/Sources/Importers/OpenTracingShim/TraceShim.swift:12:23: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public class TraceShim {
12 | public static var instance = TraceShim()
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public private(set) var otTracer: OTTracer
/Users/admin/builder/spi-builder-workspace/Sources/Importers/OpenTracingShim/TraceShim.swift:21:114: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | public static func createTracerShim() -> OTTracer {
21 | return TracerShim(telemetryInfo: TelemetryInfo(tracer: TraceShim.getTracer(tracerProvider: OpenTelemetry.instance.tracerProvider),
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
22 | baggageManager: OpenTelemetry.instance.baggageManager,
23 | propagators: OpenTelemetry.instance.propagators))
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Importers/OpenTracingShim/TraceShim.swift:22:86: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 | public static func createTracerShim() -> OTTracer {
21 | return TracerShim(telemetryInfo: TelemetryInfo(tracer: TraceShim.getTracer(tracerProvider: OpenTelemetry.instance.tracerProvider),
22 | baggageManager: OpenTelemetry.instance.baggageManager,
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 | propagators: OpenTelemetry.instance.propagators))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Importers/OpenTracingShim/TraceShim.swift:23:83: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
21 | return TracerShim(telemetryInfo: TelemetryInfo(tracer: TraceShim.getTracer(tracerProvider: OpenTelemetry.instance.tracerProvider),
22 | baggageManager: OpenTelemetry.instance.baggageManager,
23 | propagators: OpenTelemetry.instance.propagators))
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Importers/OpenTracingShim/TraceShim.swift:29:83: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 | return TracerShim(telemetryInfo: TelemetryInfo(tracer: TraceShim.getTracer(tracerProvider: tracerProvider),
28 | baggageManager: baggageManager,
29 | propagators: OpenTelemetry.instance.propagators))
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
[1044/1158] Compiling OpenTracingShim SpanContextShim.swift
[1045/1158] Compiling OpenTracingShim TracerShim.swift
[1046/1158] Compiling ZipkinExporter ZipkinSpan.swift
[1047/1158] Compiling ZipkinExporter ZipkinEndpoint.swift
[1048/1158] Compiling ZipkinExporter ZipkinConversionExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Zipkin/Implementation/ZipkinConversionExtension.swift:21:16: warning: static property 'localEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | "db.instance": 4]
20 |
21 | static var localEndpointCache = [String: ZipkinEndpoint]()
| |- warning: static property 'localEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'localEndpointCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'localEndpointCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static var remoteEndpointCache = [String: ZipkinEndpoint]()
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Zipkin/Implementation/ZipkinConversionExtension.swift:22:16: warning: static property 'remoteEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | static var localEndpointCache = [String: ZipkinEndpoint]()
22 | static var remoteEndpointCache = [String: ZipkinEndpoint]()
| |- warning: static property 'remoteEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'remoteEndpointCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'remoteEndpointCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | static let defaultServiceName = "unknown_service:" + ProcessInfo.processInfo.processName
[1049/1158] Compiling ZipkinExporter ZipkinAnnotation.swift
[1050/1158] Emitting module ZipkinExporter
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Zipkin/Implementation/ZipkinConversionExtension.swift:21:16: warning: static property 'localEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | "db.instance": 4]
20 |
21 | static var localEndpointCache = [String: ZipkinEndpoint]()
| |- warning: static property 'localEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'localEndpointCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'localEndpointCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static var remoteEndpointCache = [String: ZipkinEndpoint]()
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Zipkin/Implementation/ZipkinConversionExtension.swift:22:16: warning: static property 'remoteEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | static var localEndpointCache = [String: ZipkinEndpoint]()
22 | static var remoteEndpointCache = [String: ZipkinEndpoint]()
| |- warning: static property 'remoteEndpointCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'remoteEndpointCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'remoteEndpointCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | static let defaultServiceName = "unknown_service:" + ProcessInfo.processInfo.processName
[1051/1160] Compiling PersistenceExporter StorageError.swift
[1052/1160] Compiling OpenTelemetryProtocolExporterCommon logs_service.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PersistencePerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PersistencePerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
[1053/1160] Compiling OpenTelemetryProtocolExporterCommon metrics.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PersistencePerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PersistencePerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
[1054/1160] Compiling OpenTelemetryProtocolExporterCommon common.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1055/1160] Compiling OpenTelemetryProtocolExporterCommon logs.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1056/1160] Compiling OpenTelemetryProtocolExporterCommon CommonAdapter.swift
[1057/1160] Compiling OpenTelemetryProtocolExporterCommon Constants.swift
[1058/1160] Compiling OpenTelemetryProtocolExporterCommon LogRecordAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1059/1160] Compiling OpenTelemetryProtocolExporterCommon MetricsAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1060/1160] Emitting module PersistenceExporter
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PersistencePerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/PersistencePerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PersistencePerformancePreset: Equatable, StoragePerformancePreset, ExportPerformancePreset {
| `- note: consider making struct 'PersistencePerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PersistencePerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PersistencePerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/Storage/FilesOrchestrator.swift:175:10: warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
172 | }
173 |
174 | private enum FixedWidthIntegerError<T: BinaryFloatingPoint>: Error {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
175 | case overflow(overflowingValue: T)
| `- warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
176 | }
177 |
[1061/1160] Compiling OpenTelemetryProtocolExporterCommon EnvVarHeaders.swift
[1062/1160] Compiling OpenTelemetryProtocolExporterCommon Headers.swift
[1063/1160] Compiling PersistenceExporter FilesOrchestrator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/Storage/FilesOrchestrator.swift:175:10: warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
172 | }
173 |
174 | private enum FixedWidthIntegerError<T: BinaryFloatingPoint>: Error {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
175 | case overflow(overflowingValue: T)
| `- warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
176 | }
177 |
[1064/1160] Compiling PersistenceExporter FileReader.swift
[1065/1160] Compiling PersistenceExporter FileWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/Storage/FileWriter.swift:30:13: warning: capture of 'self' with non-sendable type 'OrchestratedFileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | }
15 |
16 | internal final class OrchestratedFileWriter: FileWriter {
| `- note: class 'OrchestratedFileWriter' does not conform to the 'Sendable' protocol
17 | /// Orchestrator producing reference to writable file.
18 | private let orchestrator: FilesOrchestrator
:
28 | func write(data: Data) {
29 | queue.async { [weak self] in
30 | self?.synchronizedWrite(data: data)
| `- warning: capture of 'self' with non-sendable type 'OrchestratedFileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | }
32 | }
[1066/1190] Compiling StdoutExporter StdoutSpanExporter.swift
[1067/1192] Compiling PersistenceExporter DateProvider.swift
[1068/1192] Emitting module InMemoryExporter
[1069/1192] Compiling InMemoryExporter InMemoryExporter.swift
[1070/1192] Compiling JaegerExporter Sender.swift
[1071/1192] Compiling JaegerExporter UDPUtils.swift
[1072/1192] Compiling ConcurrencyContext main.swift
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:24:28: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
22 | )
23 |
24 | let tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: "ConcurrencyContext", instrumentationVersion: "semver:0.1.0")
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | extension Task where Failure == Never, Success == Never {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryConcurrency/OpenTelemetry.swift:52:23: note: static property declared here
50 | public static var version: String { _OpenTelemetry.version }
51 |
52 | public static var instance = OpenTelemetry()
| `- note: static property declared here
53 |
54 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:33:22: warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
31 |
32 | func simpleSpan() async throws {
33 | let span = await tracer.spanBuilder(spanName: "SimpleSpan").setSpanKind(spanKind: .client).startSpan()
| `- warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
34 | span.setAttribute(key: sampleKey, value: sampleValue)
35 | try await Task.sleep(seconds: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryConcurrency/OpenTelemetry.swift:17:15: note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
15 |
16 | /// A wrapper type which provides a span builder just like `Tracer`, returns a type of `SpanBuilderBase` to hide APIs on `SpanBuilder` that aren't correctly usable when using a structured concurrency based context manager.
17 | public struct TracerWrapper {
| `- note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
18 | /// The inner `Tracer` used to construct a span builder. Be careful when accessing this property, as it may make it easier to use API's that don't function properly with your configuration.
19 | public let inner: Tracer
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OpenTelemetryConcurrency'
6 | #if canImport(_Concurrency)
7 | import OpenTelemetrySdk
8 | import OpenTelemetryConcurrency
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'OpenTelemetryConcurrency'
9 | import StdoutExporter
10 |
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:41:15: warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
39 | func childSpan() async throws {
40 | // SpanBuilder's `setActive` method is not available here, since it isn't compatible with structured concurrency based context management
41 | try await tracer.spanBuilder(spanName: "parentSpan").setSpanKind(spanKind: .client).withActiveSpan { span in
| `- warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
42 | span.setAttribute(key: sampleKey, value: sampleValue)
43 | await Task.detached {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryConcurrency/OpenTelemetry.swift:17:15: note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
15 |
16 | /// A wrapper type which provides a span builder just like `Tracer`, returns a type of `SpanBuilderBase` to hide APIs on `SpanBuilder` that aren't correctly usable when using a structured concurrency based context manager.
17 | public struct TracerWrapper {
| `- note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
18 | /// The inner `Tracer` used to construct a span builder. Be careful when accessing this property, as it may make it easier to use API's that don't function properly with your configuration.
19 | public let inner: Tracer
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:45:39: warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
43 | await Task.detached {
44 | // A detached task doesn't inherit the task local context, so this span won't have a parent.
45 | let notAChildSpan = await tracer.spanBuilder(spanName: "notAChild").setSpanKind(spanKind: .client).startSpan()
| `- warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | notAChildSpan.setAttribute(key: sampleKey, value: sampleValue)
47 | notAChildSpan.end()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryConcurrency/OpenTelemetry.swift:17:15: note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
15 |
16 | /// A wrapper type which provides a span builder just like `Tracer`, returns a type of `SpanBuilderBase` to hide APIs on `SpanBuilder` that aren't correctly usable when using a structured concurrency based context manager.
17 | public struct TracerWrapper {
| `- note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
18 | /// The inner `Tracer` used to construct a span builder. Be careful when accessing this property, as it may make it easier to use API's that don't function properly with your configuration.
19 | public let inner: Tracer
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:53:35: warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
51 | // Normal tasks should still inherit the context.
52 | try await Task.sleep(seconds: 0.2)
53 | let childSpan = await tracer.spanBuilder(spanName: "childSpan").setSpanKind(spanKind: .client).startSpan()
| `- warning: non-sendable type 'TracerWrapper' in implicitly asynchronous access to main actor-isolated let 'tracer' cannot cross actor boundary; this is an error in the Swift 6 language mode
54 | childSpan.setAttribute(key: sampleKey, value: sampleValue)
55 | try await Task.sleep(seconds: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryConcurrency/OpenTelemetry.swift:17:15: note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
15 |
16 | /// A wrapper type which provides a span builder just like `Tracer`, returns a type of `SpanBuilderBase` to hide APIs on `SpanBuilder` that aren't correctly usable when using a structured concurrency based context manager.
17 | public struct TracerWrapper {
| `- note: struct 'TracerWrapper' does not conform to the 'Sendable' protocol
18 | /// The inner `Tracer` used to construct a span builder. Be careful when accessing this property, as it may make it easier to use API's that don't function properly with your configuration.
19 | public let inner: Tracer
[1073/1192] Emitting module ConcurrencyContext
/Users/admin/builder/spi-builder-workspace/Examples/ConcurrencyContext/main.swift:24:28: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
22 | )
23 |
24 | let tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: "ConcurrencyContext", instrumentationVersion: "semver:0.1.0")
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | extension Task where Failure == Never, Success == Never {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryConcurrency/OpenTelemetry.swift:52:23: note: static property declared here
50 | public static var version: String { _OpenTelemetry.version }
51 |
52 | public static var instance = OpenTelemetry()
| `- note: static property declared here
53 |
54 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
[1073/1192] Write Objects.LinkFileList
[1075/1192] Compiling URLSessionInstrumentation URLSessionInstrumentationConfiguration.swift
[1076/1192] Compiling URLSessionInstrumentation InstrumentationUtils.swift
[1077/1192] Compiling URLSessionInstrumentation URLSessionInstrumentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:26:13: warning: var 'idKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | }
25 |
26 | private var idKey: Void?
| |- warning: var 'idKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'idKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'idKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public class URLSessionInstrumentation {
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:35:16: warning: static property 'instrumentedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private let queue = DispatchQueue(label: "io.opentelemetry.ddnetworkinstrumentation")
34 |
35 | static var instrumentedKey = "io.opentelemetry.instrumentedCall"
| |- warning: static property 'instrumentedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instrumentedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instrumentedKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | static let avAssetDownloadTask: AnyClass? = NSClassFromString("__NSCFBackgroundAVAssetDownloadTask")
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:658:7: warning: non-final class 'FakeDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
656 | }
657 |
658 | class FakeDelegate: NSObject, URLSessionTaskDelegate {
| `- warning: non-final class 'FakeDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
659 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {}
660 | }
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:16:16: warning: static property 'runningSpansQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class URLSessionLogger {
15 | static var runningSpans = [String: Span]()
16 | static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
| |- warning: static property 'runningSpansQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runningSpansQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runningSpansQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | #if os(iOS) && !targetEnvironment(macCatalyst)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:15:16: warning: static property 'runningSpans' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class URLSessionLogger {
15 | static var runningSpans = [String: Span]()
| |- warning: static property 'runningSpans' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runningSpans' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runningSpans' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
17 | #if os(iOS) && !targetEnvironment(macCatalyst)
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:51:32: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
49 | public init(configuration: URLSessionInstrumentationConfiguration) {
50 | self.configuration = configuration
51 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: "NSURLSession", instrumentationVersion: "0.0.1")
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
52 | injectInNSURLClasses()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:87:25: warning: capture of 'self' with non-sendable type 'URLSessionInstrumentation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | private var idKey: Void?
27 |
28 | public class URLSessionInstrumentation {
| `- note: class 'URLSessionInstrumentation' does not conform to the 'Sendable' protocol
29 | private var requestMap = [String: NetworkRequestState]()
30 |
:
85 | if method_getName(methodList[i]) == selectors[j] {
86 | selectorFound = true
87 | injectIntoDelegateClass(cls: theClass)
| `- warning: capture of 'self' with non-sendable type 'URLSessionInstrumentation' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | break
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:206:34: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
204 | let cls = URLSession.self
205 | [
206 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
207 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
208 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:207:34: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
205 | [
206 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
207 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
208 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
209 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:208:34: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
206 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
207 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
208 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
| `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
209 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
210 | #selector(URLSession.downloadTask(withResumeData:completionHandler:)),
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:209:34: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
207 | #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask),
208 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URLRequest, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
209 | #selector(URLSession.downloadTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask),
| `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
210 | #selector(URLSession.downloadTask(withResumeData:completionHandler:)),
211 | ].forEach {
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:225:61: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
223 |
224 | if self.configuration.shouldInjectTracingHeaders?(request) ?? true {
225 | if selector == #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask) {
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
226 | if let completion = completion {
227 | return session.dataTask(with: request, completionHandler: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:227:91: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
225 | if selector == #selector(URLSession.dataTask(with:completionHandler:) as (URLSession) -> (URL, @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask) {
226 | if let completion = completion {
227 | return session.dataTask(with: request, completionHandler: completion)
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
228 | } else {
229 | return session.dataTask(with: request)
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:233:95: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
231 | } else {
232 | if let completion = completion {
233 | return session.downloadTask(with: request, completionHandler: completion)
| `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
234 | } else {
235 | return session.downloadTask(with: request)
[1078/1192] Compiling URLSessionInstrumentation URLSessionLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:15:16: warning: static property 'runningSpans' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class URLSessionLogger {
15 | static var runningSpans = [String: Span]()
| |- warning: static property 'runningSpans' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runningSpans' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runningSpans' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
17 | #if os(iOS) && !targetEnvironment(macCatalyst)
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:16:16: warning: static property 'runningSpansQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class URLSessionLogger {
15 | static var runningSpans = [String: Span]()
16 | static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
| |- warning: static property 'runningSpansQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runningSpansQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runningSpansQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | #if os(iOS) && !targetEnvironment(macCatalyst)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:35:16: warning: static property 'instrumentedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private let queue = DispatchQueue(label: "io.opentelemetry.ddnetworkinstrumentation")
34 |
35 | static var instrumentedKey = "io.opentelemetry.instrumentedCall"
| |- warning: static property 'instrumentedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instrumentedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instrumentedKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | static let avAssetDownloadTask: AnyClass? = NSClassFromString("__NSCFBackgroundAVAssetDownloadTask")
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:162:41: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
160 | var instrumentedRequest = request
161 | objc_setAssociatedObject(instrumentedRequest, URLSessionInstrumentation.instrumentedKey, true, .OBJC_ASSOCIATION_COPY_NONATOMIC)
162 | let propagators = OpenTelemetry.instance.propagators
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
163 | var traceHeaders = tracePropagationHTTPHeaders(span: span, textMapPropagator: propagators.textMapPropagator, textMapBaggagePropagator: propagators.textMapBaggagePropagator)
164 | if let originalHeaders = request.allHTTPHeaderFields {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:180:55: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
178 | }
179 |
180 | guard let currentSpan = span ?? OpenTelemetry.instance.contextProvider.activeSpan else {
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
181 | return headers
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:185:40: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
183 | textMapPropagator.inject(spanContext: currentSpan.context, carrier: &headers, setter: HeaderSetter())
184 |
185 | if let baggage = OpenTelemetry.instance.contextProvider.activeBaggage {
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
186 | textMapBaggagePropagator.inject(baggage: baggage, carrier: &headers, setter: HeaderSetter())
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
[1079/1192] Emitting module URLSessionInstrumentation
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:26:13: warning: var 'idKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | }
25 |
26 | private var idKey: Void?
| |- warning: var 'idKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'idKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'idKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public class URLSessionInstrumentation {
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:35:16: warning: static property 'instrumentedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private let queue = DispatchQueue(label: "io.opentelemetry.ddnetworkinstrumentation")
34 |
35 | static var instrumentedKey = "io.opentelemetry.instrumentedCall"
| |- warning: static property 'instrumentedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instrumentedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instrumentedKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | static let avAssetDownloadTask: AnyClass? = NSClassFromString("__NSCFBackgroundAVAssetDownloadTask")
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionInstrumentation.swift:658:7: warning: non-final class 'FakeDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
656 | }
657 |
658 | class FakeDelegate: NSObject, URLSessionTaskDelegate {
| `- warning: non-final class 'FakeDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
659 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {}
660 | }
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:15:16: warning: static property 'runningSpans' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class URLSessionLogger {
15 | static var runningSpans = [String: Span]()
| |- warning: static property 'runningSpans' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runningSpans' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runningSpans' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
17 | #if os(iOS) && !targetEnvironment(macCatalyst)
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:16:16: warning: static property 'runningSpansQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class URLSessionLogger {
15 | static var runningSpans = [String: Span]()
16 | static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
| |- warning: static property 'runningSpansQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runningSpansQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runningSpansQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | #if os(iOS) && !targetEnvironment(macCatalyst)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:180:55: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
178 | }
179 |
180 | guard let currentSpan = span ?? OpenTelemetry.instance.contextProvider.activeSpan else {
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
181 | return headers
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Sources/Instrumentation/URLSession/URLSessionLogger.swift:185:40: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
183 | textMapPropagator.inject(spanContext: currentSpan.context, carrier: &headers, setter: HeaderSetter())
184 |
185 | if let baggage = OpenTelemetry.instance.contextProvider.activeBaggage {
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
186 | textMapBaggagePropagator.inject(baggage: baggage, carrier: &headers, setter: HeaderSetter())
187 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
[1080/1194] Compiling DatadogExporter FileReader.swift
[1081/1194] Compiling DatadogExporter FileWriter.swift
[1082/1194] Compiling DatadogExporter RequestBuilder.swift
[1083/1194] Compiling DatadogExporter DataCompression.swift
[1084/1194] Compiling DatadogExporter SpanEncoder.swift
[1085/1194] Compiling DatadogExporter SpansExporter.swift
[1086/1194] Compiling DatadogExporter ExporterConfiguration.swift
[1087/1194] Compiling DatadogExporter Directory.swift
[1088/1194] Compiling DatadogExporter HTTPClient.swift
[1089/1194] Compiling DatadogExporter DataFormat.swift
[1090/1194] Compiling DatadogExporter File.swift
[1091/1194] Compiling DatadogExporter FilesOrchestrator.swift
[1092/1194] Compiling DatadogExporter DataUploader.swift
[1093/1194] Compiling DatadogExporter DatadogEndpoints.swift
[1094/1194] Emitting module Atomics
[1095/1194] Compiling DatadogExporter DataUploadWorker.swift
[1096/1194] Compiling DatadogExporter DatadogExporter.swift
[1097/1194] Compiling DatadogExporter DataUploadDelay.swift
[1098/1194] Compiling DatadogExporter DataUploadStatus.swift
[1098/1196] Linking ConcurrencyContext
[1099/1196] Applying ConcurrencyContext
[1101/1196] Compiling Atomics IntegerOperations.swift
[1102/1196] Compiling Atomics Unmanaged extensions.swift
[1103/1196] Emitting module NetworkSample
/Users/admin/builder/spi-builder-workspace/Examples/Network Sample/main.swift:31:7: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
29 |
30 |
31 | class SessionDelegate: NSObject, URLSessionDataDelegate, URLSessionTaskDelegate {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
32 | let semaphore = DispatchSemaphore(value: 0)
33 |
[1104/1196] Compiling NetworkSample main.swift
/Users/admin/builder/spi-builder-workspace/Examples/Network Sample/main.swift:31:7: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
29 |
30 |
31 | class SessionDelegate: NSObject, URLSessionDataDelegate, URLSessionTaskDelegate {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
32 | let semaphore = DispatchSemaphore(value: 0)
33 |
[1104/1196] Write Objects.LinkFileList
[1106/1256] Compiling NIOCore EventLoop.swift
[1107/1256] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[1108/1256] Compiling NIOCore AddressedEnvelope.swift
[1109/1256] Compiling NIOCore AsyncChannelInboundStreamChannelHandler.swift
[1110/1256] Compiling NIOCore AsyncChannelOutboundWriter.swift
[1111/1256] Compiling NIOCore AsyncChannelOutboundWriterHandler.swift
[1112/1256] Compiling NIOCore AsyncAwaitSupport.swift
[1113/1256] Compiling NIOCore AsyncChannel.swift
[1114/1256] Compiling NIOCore AsyncChannelInboundStream.swift
[1115/1259] Compiling ResourceExtension ResourceProvider.swift
[1116/1259] Compiling ResourceExtension OSResourceProvider.swift
[1117/1259] Compiling ResourceExtension DeviceResourceProvider.swift
[1118/1260] Compiling NIOCore CircularBuffer.swift
[1119/1260] Compiling NIOCore Codec.swift
[1120/1260] Compiling NIOCore DispatchQueue+WithFuture.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/trace.pb.swift:372:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
370 | extension Opentelemetry_Proto_Trace_V1_Span.SpanKind: CaseIterable {
371 | // The compiler won't synthesize support with the UNRECOGNIZED case.
372 | public static var allCases: [Opentelemetry_Proto_Trace_V1_Span.SpanKind] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
373 | .unspecified,
374 | .internal,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/trace.pb.swift:446:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
444 | extension Opentelemetry_Proto_Trace_V1_Status.StatusCode: CaseIterable {
445 | // The compiler won't synthesize support with the UNRECOGNIZED case.
446 | public static var allCases: [Opentelemetry_Proto_Trace_V1_Status.StatusCode] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
447 | .unset,
448 | .ok,
[1121/1260] Compiling NIOCore EventLoop+Deprecated.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/trace.pb.swift:372:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
370 | extension Opentelemetry_Proto_Trace_V1_Span.SpanKind: CaseIterable {
371 | // The compiler won't synthesize support with the UNRECOGNIZED case.
372 | public static var allCases: [Opentelemetry_Proto_Trace_V1_Span.SpanKind] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
373 | .unspecified,
374 | .internal,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/trace.pb.swift:446:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
444 | extension Opentelemetry_Proto_Trace_V1_Status.StatusCode: CaseIterable {
445 | // The compiler won't synthesize support with the UNRECOGNIZED case.
446 | public static var allCases: [Opentelemetry_Proto_Trace_V1_Status.StatusCode] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
447 | .unset,
448 | .ok,
[1122/1261] Compiling NIOCore NIOAsyncSequenceProducer.swift
[1123/1261] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[1124/1261] Compiling NIOCore NIOAsyncWriter.swift
[1125/1261] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1126/1261] Compiling NIOCore BSDSocketAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1127/1261] Compiling NIOCore ByteBuffer-aux.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1128/1261] Compiling NIOCore ByteBuffer-conversions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
[1129/1261] Compiling ResourceExtension TelemetryDataSource.swift
[1132/1261] Compiling ResourceExtension DefaultResources.swift
[1134/1261] Compiling NIOCore ChannelHandler.swift
[1135/1261] Emitting module ResourceExtension
[1136/1261] Compiling JaegerExporter JaegerSpanExporter.swift
[1137/1261] Compiling JaegerExporter jaeger.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Thrift-Swift/Sources/TEnum.swift:27:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TagType' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension TEnum {
26 | public static var thriftType: TType { return .i32 }
27 | public var hashValue: Int { return rawValue.hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TagType' to 'Hashable' by implementing 'hash(into:)' instead
28 |
29 | public func write(to proto: TProtocol) throws {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Thrift-Swift/Sources/TEnum.swift:27:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRefType' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension TEnum {
26 | public static var thriftType: TType { return .i32 }
27 | public var hashValue: Int { return rawValue.hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRefType' to 'Hashable' by implementing 'hash(into:)' instead
28 |
29 | public func write(to proto: TProtocol) throws {
[1138/1261] Compiling JaegerExporter agent+Exts.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/agent+Exts.swift:33:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitZipkinBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
31 | extension Agent_emitZipkinBatch_args : Hashable {
32 |
33 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitZipkinBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
34 | let prime = 31
35 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/agent+Exts.swift:96:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
94 | extension Agent_emitBatch_args : Hashable {
95 |
96 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
97 | let prime = 31
98 | var result = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/agent+Exts.swift:229:14: warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'AgentProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Agent) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
227 | extension AgentProcessor : TProcessor {
228 |
229 | static let processorHandlers: ProcessorHandlerDictionary = {
| |- warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'AgentProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Agent) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'processorHandlers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | var processorHandlers = ProcessorHandlerDictionary()
[1139/1261] Emitting module JaegerExporter
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/agent+Exts.swift:33:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitZipkinBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
31 | extension Agent_emitZipkinBatch_args : Hashable {
32 |
33 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitZipkinBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
34 | let prime = 31
35 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/agent+Exts.swift:96:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
94 | extension Agent_emitBatch_args : Hashable {
95 |
96 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Agent_emitBatch_args' to 'Hashable' by implementing 'hash(into:)' instead
97 | let prime = 31
98 | var result = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/agent+Exts.swift:229:14: warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'AgentProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Agent) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
227 | extension AgentProcessor : TProcessor {
228 |
229 | static let processorHandlers: ProcessorHandlerDictionary = {
| |- warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'AgentProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Agent) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'processorHandlers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | var processorHandlers = ProcessorHandlerDictionary()
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:44:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Tag' to 'Hashable' by implementing 'hash(into:)' instead
42 | extension Tag : Hashable {
43 |
44 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Tag' to 'Hashable' by implementing 'hash(into:)' instead
45 | let prime = 31
46 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:127:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Log' to 'Hashable' by implementing 'hash(into:)' instead
125 | extension Log : Hashable {
126 |
127 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Log' to 'Hashable' by implementing 'hash(into:)' instead
128 | let prime = 31
129 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:199:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRef' to 'Hashable' by implementing 'hash(into:)' instead
197 | extension SpanRef : Hashable {
198 |
199 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRef' to 'Hashable' by implementing 'hash(into:)' instead
200 | let prime = 31
201 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:293:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Span' to 'Hashable' by implementing 'hash(into:)' instead
291 | extension Span : Hashable {
292 |
293 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Span' to 'Hashable' by implementing 'hash(into:)' instead
294 | let prime = 31
295 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:394:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Process' to 'Hashable' by implementing 'hash(into:)' instead
392 | extension Process : Hashable {
393 |
394 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Process' to 'Hashable' by implementing 'hash(into:)' instead
395 | let prime = 31
396 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:461:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Batch' to 'Hashable' by implementing 'hash(into:)' instead
459 | extension Batch : Hashable {
460 |
461 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Batch' to 'Hashable' by implementing 'hash(into:)' instead
462 | let prime = 31
463 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:527:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BatchSubmitResponse' to 'Hashable' by implementing 'hash(into:)' instead
525 | extension BatchSubmitResponse : Hashable {
526 |
527 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BatchSubmitResponse' to 'Hashable' by implementing 'hash(into:)' instead
528 | let prime = 31
529 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:590:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_args' to 'Hashable' by implementing 'hash(into:)' instead
588 | extension Collector_submitBatches_args : Hashable {
589 |
590 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_args' to 'Hashable' by implementing 'hash(into:)' instead
591 | let prime = 31
592 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:654:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_result' to 'Hashable' by implementing 'hash(into:)' instead
652 | extension Collector_submitBatches_result : Hashable {
653 |
654 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_result' to 'Hashable' by implementing 'hash(into:)' instead
655 | let prime = 31
656 | var result = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:774:14: warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'CollectorProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Collector) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
772 | extension CollectorProcessor : TProcessor {
773 |
774 | static let processorHandlers: ProcessorHandlerDictionary = {
| |- warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'CollectorProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Collector) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'processorHandlers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
775 |
776 | var processorHandlers = ProcessorHandlerDictionary()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Thrift-Swift/Sources/TEnum.swift:27:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TagType' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension TEnum {
26 | public static var thriftType: TType { return .i32 }
27 | public var hashValue: Int { return rawValue.hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TagType' to 'Hashable' by implementing 'hash(into:)' instead
28 |
29 | public func write(to proto: TProtocol) throws {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Thrift-Swift/Sources/TEnum.swift:27:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRefType' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension TEnum {
26 | public static var thriftType: TType { return .i32 }
27 | public var hashValue: Int { return rawValue.hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRefType' to 'Hashable' by implementing 'hash(into:)' instead
28 |
29 | public func write(to proto: TProtocol) throws {
[1140/1261] Compiling JaegerExporter agent.swift
[1141/1261] Compiling JaegerExporter jaeger+Exts.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:44:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Tag' to 'Hashable' by implementing 'hash(into:)' instead
42 | extension Tag : Hashable {
43 |
44 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Tag' to 'Hashable' by implementing 'hash(into:)' instead
45 | let prime = 31
46 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:127:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Log' to 'Hashable' by implementing 'hash(into:)' instead
125 | extension Log : Hashable {
126 |
127 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Log' to 'Hashable' by implementing 'hash(into:)' instead
128 | let prime = 31
129 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:199:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRef' to 'Hashable' by implementing 'hash(into:)' instead
197 | extension SpanRef : Hashable {
198 |
199 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SpanRef' to 'Hashable' by implementing 'hash(into:)' instead
200 | let prime = 31
201 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:293:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Span' to 'Hashable' by implementing 'hash(into:)' instead
291 | extension Span : Hashable {
292 |
293 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Span' to 'Hashable' by implementing 'hash(into:)' instead
294 | let prime = 31
295 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:394:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Process' to 'Hashable' by implementing 'hash(into:)' instead
392 | extension Process : Hashable {
393 |
394 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Process' to 'Hashable' by implementing 'hash(into:)' instead
395 | let prime = 31
396 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:461:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Batch' to 'Hashable' by implementing 'hash(into:)' instead
459 | extension Batch : Hashable {
460 |
461 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Batch' to 'Hashable' by implementing 'hash(into:)' instead
462 | let prime = 31
463 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:527:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BatchSubmitResponse' to 'Hashable' by implementing 'hash(into:)' instead
525 | extension BatchSubmitResponse : Hashable {
526 |
527 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BatchSubmitResponse' to 'Hashable' by implementing 'hash(into:)' instead
528 | let prime = 31
529 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:590:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_args' to 'Hashable' by implementing 'hash(into:)' instead
588 | extension Collector_submitBatches_args : Hashable {
589 |
590 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_args' to 'Hashable' by implementing 'hash(into:)' instead
591 | let prime = 31
592 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:654:19: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_result' to 'Hashable' by implementing 'hash(into:)' instead
652 | extension Collector_submitBatches_result : Hashable {
653 |
654 | fileprivate var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Collector_submitBatches_result' to 'Hashable' by implementing 'hash(into:)' instead
655 | let prime = 31
656 | var result = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Jaeger/Jaeger Thrift/jaeger+Exts.swift:774:14: warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'CollectorProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Collector) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
772 | extension CollectorProcessor : TProcessor {
773 |
774 | static let processorHandlers: ProcessorHandlerDictionary = {
| |- warning: static property 'processorHandlers' is not concurrency-safe because non-'Sendable' type 'CollectorProcessor.ProcessorHandlerDictionary' (aka 'Dictionary<String, (Int32, any TProtocol, any TProtocol, any Collector) throws -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'processorHandlers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
775 |
776 | var processorHandlers = ProcessorHandlerDictionary()
[1142/1261] Compiling JaegerExporter Adapter.swift
[1143/1261] Compiling OpenTelemetryProtocolExporterCommon TraceProtoUtils.swift
[1144/1261] Compiling NIOCore ChannelOption.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:28:23: warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
26 |
27 | @available(*, deprecated, message: "Renamed to us1")
28 | public static let us: Endpoint = .us1
| |- warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'us' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:30:23: warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
28 | public static let us: Endpoint = .us1
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
| |- warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eu' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:32:23: warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
30 | public static let eu: Endpoint = .eu1
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
| |- warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gov' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | internal var logsURL: URL {
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/HTTPClient.swift:32:13: warning: capture of 'completion' with non-sendable type '(Result<HTTPURLResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | func send(request: URLRequest, completion: @escaping (Result<HTTPURLResponse, Error>) -> Void) {
31 | let task = session.dataTask(with: request) { data, response, error in
32 | completion(httpClientResult(for: (data, response, error)))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPURLResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 | }
34 | task.resume()
[1145/1261] Compiling NIOCore ChannelPipeline.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:28:23: warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
26 |
27 | @available(*, deprecated, message: "Renamed to us1")
28 | public static let us: Endpoint = .us1
| |- warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'us' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:30:23: warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
28 | public static let us: Endpoint = .us1
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
| |- warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eu' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:32:23: warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
30 | public static let eu: Endpoint = .eu1
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
| |- warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gov' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | internal var logsURL: URL {
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/HTTPClient.swift:32:13: warning: capture of 'completion' with non-sendable type '(Result<HTTPURLResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | func send(request: URLRequest, completion: @escaping (Result<HTTPURLResponse, Error>) -> Void) {
31 | let task = session.dataTask(with: request) { data, response, error in
32 | completion(httpClientResult(for: (data, response, error)))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPURLResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 | }
34 | task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:28:23: warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
26 |
27 | @available(*, deprecated, message: "Renamed to us1")
28 | public static let us: Endpoint = .us1
| |- warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'us' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:30:23: warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
28 | public static let us: Endpoint = .us1
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
| |- warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eu' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:32:23: warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
30 | public static let eu: Endpoint = .eu1
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
| |- warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gov' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | internal var logsURL: URL {
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/HTTPClient.swift:32:13: warning: capture of 'completion' with non-sendable type '(Result<HTTPURLResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | func send(request: URLRequest, completion: @escaping (Result<HTTPURLResponse, Error>) -> Void) {
31 | let task = session.dataTask(with: request) { data, response, error in
32 | completion(httpClientResult(for: (data, response, error)))
| |- warning: capture of 'completion' with non-sendable type '(Result<HTTPURLResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 | }
34 | task.resume()
[1147/1261] Emitting module DatadogExporter
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FilesOrchestrator.swift:178:10: warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
175 | }
176 |
177 | private enum FixedWidthIntegerError<T: BinaryFloatingPoint>: Error {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
178 | case overflow(overflowingValue: T)
| `- warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:28:23: warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
26 |
27 | @available(*, deprecated, message: "Renamed to us1")
28 | public static let us: Endpoint = .us1
| |- warning: static property 'us' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'us' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:30:23: warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
28 | public static let us: Endpoint = .us1
29 | @available(*, deprecated, message: "Renamed to eu1")
30 | public static let eu: Endpoint = .eu1
| |- warning: static property 'eu' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eu' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Upload/DatadogEndpoints.swift:32:23: warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public enum Endpoint {
| `- note: consider making enum 'Endpoint' conform to the 'Sendable' protocol
9 | /// US based servers.
10 | /// Sends data to [app.datadoghq.com](https://app.datadoghq.com/).
:
30 | public static let eu: Endpoint = .eu1
31 | @available(*, deprecated, message: "Renamed to us1_fed")
32 | public static let gov: Endpoint = .us1_fed
| |- warning: static property 'gov' is not concurrency-safe because non-'Sendable' type 'Endpoint' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gov' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | internal var logsURL: URL {
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FilesOrchestrator.swift:178:10: warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
175 | }
176 |
177 | private enum FixedWidthIntegerError<T: BinaryFloatingPoint>: Error {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
178 | case overflow(overflowingValue: T)
| `- warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
179 | }
180 |
[1149/1261] Compiling NIOCore ChannelHandlers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FilesOrchestrator.swift:178:10: warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
175 | }
176 |
177 | private enum FixedWidthIntegerError<T: BinaryFloatingPoint>: Error {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
178 | case overflow(overflowingValue: T)
| `- warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
179 | }
180 |
[1150/1261] Compiling NIOCore ChannelInvoker.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FilesOrchestrator.swift:178:10: warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
175 | }
176 |
177 | private enum FixedWidthIntegerError<T: BinaryFloatingPoint>: Error {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
178 | case overflow(overflowingValue: T)
| `- warning: associated value 'overflow(overflowingValue:)' of 'Sendable'-conforming generic enum 'FixedWidthIntegerError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FileWriter.swift:31:13: warning: capture of 'self' with non-sendable type 'FileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal final class FileWriter {
| `- note: class 'FileWriter' does not conform to the 'Sendable' protocol
9 | /// Data writing format.
10 | private let dataFormat: DataFormat
:
29 | func write<T: Encodable>(value: T) {
30 | queue.async { [weak self] in
31 | self?.synchronizedWrite(value: value)
| `- warning: capture of 'self' with non-sendable type 'FileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FileWriter.swift:31:44: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | /// Comma is used to separate consecutive values in the file.
28 |
29 | func write<T: Encodable>(value: T) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 | queue.async { [weak self] in
31 | self?.synchronizedWrite(value: value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | }
[1152/1261] Compiling NIOCore ConvenienceOptionSupport.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FileWriter.swift:31:13: warning: capture of 'self' with non-sendable type 'FileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal final class FileWriter {
| `- note: class 'FileWriter' does not conform to the 'Sendable' protocol
9 | /// Data writing format.
10 | private let dataFormat: DataFormat
:
29 | func write<T: Encodable>(value: T) {
30 | queue.async { [weak self] in
31 | self?.synchronizedWrite(value: value)
| `- warning: capture of 'self' with non-sendable type 'FileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FileWriter.swift:31:44: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | /// Comma is used to separate consecutive values in the file.
28 |
29 | func write<T: Encodable>(value: T) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 | queue.async { [weak self] in
31 | self?.synchronizedWrite(value: value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | }
[1153/1261] Compiling NIOCore DeadChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FileWriter.swift:31:13: warning: capture of 'self' with non-sendable type 'FileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal final class FileWriter {
| `- note: class 'FileWriter' does not conform to the 'Sendable' protocol
9 | /// Data writing format.
10 | private let dataFormat: DataFormat
:
29 | func write<T: Encodable>(value: T) {
30 | queue.async { [weak self] in
31 | self?.synchronizedWrite(value: value)
| `- warning: capture of 'self' with non-sendable type 'FileWriter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Persistence/FileWriter.swift:31:44: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | /// Comma is used to separate consecutive values in the file.
28 |
29 | func write<T: Encodable>(value: T) {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
30 | queue.async { [weak self] in
31 | self?.synchronizedWrite(value: value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
[1156/1261] Compiling NIOCore EventLoop+SerialExecutor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
[1156/1261] Linking NetworkSample
[1157/1261] Applying NetworkSample
[1159/1261] Compiling ResourceExtension TelemetryResourceProvider.swift
[1160/1261] Compiling DatadogExporter Feature.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
[1161/1261] Compiling DatadogExporter JSONEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
[1162/1261] Compiling DatadogExporter PerformancePreset.swift
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/DateFormatting.swift:17:14: warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | internal protocol DateFormatterType {
| `- note: protocol 'DateFormatterType' does not conform to the 'Sendable' protocol
9 | func string(from date: Date) -> String
10 | }
:
15 | /// Date formatter producing `ISO8601` string representation of a given date.
16 | /// Should be used to encode dates in messages send to the server.
17 | internal let iso8601DateFormatter: DateFormatterType = {
| |- warning: let 'iso8601DateFormatter' is not concurrency-safe because non-'Sendable' type 'any DateFormatterType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601DateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | // As there is a known crash in iOS 11.0 and 11.1 when using `.withFractionalSeconds` option in `ISO8601DateFormatter`,
19 | // we use different `DateFormatterType` implementation depending on the OS version. The problem was fixed by Apple in iOS 11.2.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:75:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
73 |
74 | /// Default performance preset.
75 | public static let `default` = lowRuntimeImpact
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /// Performance preset optimized for low runtime impact.
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:79:23: warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
77 | /// Performance preset optimized for low runtime impact.
78 | /// Minimalizes number of data requests send to the server.
79 | public static let lowRuntimeImpact = PerformancePreset(
| |- warning: static property 'lowRuntimeImpact' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lowRuntimeImpact' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
80 | // persistence
81 | maxFileSize: 4 * 1_024 * 1_024, // 4MB
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/DatadogExporter/Utils/PerformancePreset.swift:100:23: warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public struct PerformancePreset: Equatable, StoragePerformancePreset, UploadPerformancePreset {
| `- note: consider making struct 'PerformancePreset' conform to the 'Sendable' protocol
53 | // MARK: - StoragePerformancePreset
54 |
:
98 | /// Performance preset optimized for instant data delivery.
99 | /// Minimalizes the time between receiving data form the user and delivering it to the server.
100 | public static let instantDataDelivery = PerformancePreset(
| |- warning: static property 'instantDataDelivery' is not concurrency-safe because non-'Sendable' type 'PerformancePreset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantDataDelivery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | // persistence
102 | maxFileSize: `default`.maxFileSize,
[1163/1263] Emitting module DatadogSample
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:25:24: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | var tracer: Tracer
25 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion)
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | let hostName = Host.current().localizedName
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
[1164/1263] Compiling DatadogSample main.swift
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:25:24: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | var tracer: Tracer
25 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion)
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | let hostName = Host.current().localizedName
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:50:59: warning: main actor-isolated let 'datadogExporter' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | )
41 |
42 | let datadogExporter = try! DatadogExporter(config: exporterConfiguration)
| `- note: let declared here
43 |
44 | testTraces()
:
47 | sleep(10)
48 |
49 | func testTraces() {
| `- note: add '@MainActor' to make global function 'testTraces()' part of global actor 'MainActor'
50 | let spanProcessor = SimpleSpanProcessor(spanExporter: datadogExporter)
| `- warning: main actor-isolated let 'datadogExporter' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 |
52 | OpenTelemetry.registerTracerProvider(tracerProvider:
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:57:5: error: main actor-isolated var 'tracer' can not be mutated from a nonisolated context
22 | let instrumentationScopeVersion = "semver:0.1.0"
23 |
24 | var tracer: Tracer
| `- note: mutation of this var is only permitted within the actor
25 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion)
26 |
:
47 | sleep(10)
48 |
49 | func testTraces() {
| `- note: add '@MainActor' to make global function 'testTraces()' part of global actor 'MainActor'
50 | let spanProcessor = SimpleSpanProcessor(spanExporter: datadogExporter)
51 |
:
55 | .build()
56 | )
57 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion) as! TracerSdk
| `- error: main actor-isolated var 'tracer' can not be mutated from a nonisolated context
58 |
59 | simpleSpan()
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:57:28: warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
55 | .build()
56 | )
57 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion) as! TracerSdk
| `- warning: reference to static property 'instance' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | simpleSpan()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/OpenTelemetry.swift:18:23: note: static property declared here
16 | public static var version = "v1.21.0"
17 |
18 | public static var instance = OpenTelemetry()
| `- note: static property declared here
19 |
20 | /// Registered tracerProvider or default via DefaultTracerProvider.instance.
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:65:16: error: main actor-isolated var 'tracer' can not be referenced from a nonisolated context
22 | let instrumentationScopeVersion = "semver:0.1.0"
23 |
24 | var tracer: Tracer
| `- note: var declared here
25 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion)
26 |
:
62 | }
63 |
64 | func simpleSpan() {
| `- note: add '@MainActor' to make global function 'simpleSpan()' part of global actor 'MainActor'
65 | let span = tracer.spanBuilder(spanName: "SimpleSpan").setSpanKind(spanKind: .client).startSpan()
| `- error: main actor-isolated var 'tracer' can not be referenced from a nonisolated context
66 | span.setAttribute(key: resourceKey, value: resourceValue)
67 | span.addEvent(name: "My event", attributes: ["message": AttributeValue.string("test message"),
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:73:16: error: main actor-isolated var 'tracer' can not be referenced from a nonisolated context
22 | let instrumentationScopeVersion = "semver:0.1.0"
23 |
24 | var tracer: Tracer
| `- note: var declared here
25 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion)
26 |
:
70 | }
71 |
72 | func childSpan() {
| `- note: add '@MainActor' to make global function 'childSpan()' part of global actor 'MainActor'
73 | let span = tracer.spanBuilder(spanName: "parentSpan").setSpanKind(spanKind: .client).setActive(true).startSpan()
| `- error: main actor-isolated var 'tracer' can not be referenced from a nonisolated context
74 | span.setAttribute(key: sampleKey, value: sampleValue)
75 | let childSpan = tracer.spanBuilder(spanName: "childSpan").setSpanKind(spanKind: .client).startSpan()
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:75:21: error: main actor-isolated var 'tracer' can not be referenced from a nonisolated context
22 | let instrumentationScopeVersion = "semver:0.1.0"
23 |
24 | var tracer: Tracer
| `- note: var declared here
25 | tracer = OpenTelemetry.instance.tracerProvider.get(instrumentationName: instrumentationScopeName, instrumentationVersion: instrumentationScopeVersion)
26 |
:
70 | }
71 |
72 | func childSpan() {
| `- note: add '@MainActor' to make global function 'childSpan()' part of global actor 'MainActor'
73 | let span = tracer.spanBuilder(spanName: "parentSpan").setSpanKind(spanKind: .client).setActive(true).startSpan()
74 | span.setAttribute(key: sampleKey, value: sampleValue)
75 | let childSpan = tracer.spanBuilder(spanName: "childSpan").setSpanKind(spanKind: .client).startSpan()
| `- error: main actor-isolated var 'tracer' can not be referenced from a nonisolated context
76 | childSpan.setAttribute(key: sampleKey, value: sampleValue)
77 | childSpan.end()
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:84:25: warning: 'MeterProviderSdk' is deprecated: renamed to 'StableMeterProviderSdk'
82 | let processor = MetricProcessorSdk()
83 |
84 | let meterProvider = MeterProviderSdk(metricProcessor: processor, metricExporter: datadogExporter, metricPushInterval: 0.1)
| |- warning: 'MeterProviderSdk' is deprecated: renamed to 'StableMeterProviderSdk'
| `- note: use 'StableMeterProviderSdk' instead
85 | OpenTelemetry.registerMeterProvider(meterProvider: meterProvider)
86 |
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:85:19: warning: 'registerMeterProvider(meterProvider:)' is deprecated: Use registerStableMeterProvider instead.
83 |
84 | let meterProvider = MeterProviderSdk(metricProcessor: processor, metricExporter: datadogExporter, metricPushInterval: 0.1)
85 | OpenTelemetry.registerMeterProvider(meterProvider: meterProvider)
| `- warning: 'registerMeterProvider(meterProvider:)' is deprecated: Use registerStableMeterProvider instead.
86 |
87 | let meter = meterProvider.get(instrumentationName: "MyMeter")
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:84:86: warning: main actor-isolated let 'datadogExporter' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | )
41 |
42 | let datadogExporter = try! DatadogExporter(config: exporterConfiguration)
| `- note: let declared here
43 |
44 | testTraces()
:
79 | }
80 |
81 | func testMetrics() {
| `- note: add '@MainActor' to make global function 'testMetrics()' part of global actor 'MainActor'
82 | let processor = MetricProcessorSdk()
83 |
84 | let meterProvider = MeterProviderSdk(metricProcessor: processor, metricExporter: datadogExporter, metricPushInterval: 0.1)
| `- warning: main actor-isolated let 'datadogExporter' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
85 | OpenTelemetry.registerMeterProvider(meterProvider: meterProvider)
86 |
/Users/admin/builder/spi-builder-workspace/Examples/Datadog Sample/main.swift:100:27: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
98 | let _: kern_return_t = withUnsafeMutablePointer(to: &taskInfo) {
99 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
100 | task_info(mach_task_self_, task_flavor_t(MACH_TASK_BASIC_INFO), $0, &count)
| `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/logs.pb.swift:141:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
139 | extension Opentelemetry_Proto_Logs_V1_SeverityNumber: CaseIterable {
140 | // The compiler won't synthesize support with the UNRECOGNIZED case.
141 | public static var allCases: [Opentelemetry_Proto_Logs_V1_SeverityNumber] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | .unspecified,
143 | .trace,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/logs.pb.swift:214:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
212 | extension Opentelemetry_Proto_Logs_V1_LogRecordFlags: CaseIterable {
213 | // The compiler won't synthesize support with the UNRECOGNIZED case.
214 | public static var allCases: [Opentelemetry_Proto_Logs_V1_LogRecordFlags] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .doNotUse,
216 | .traceFlagsMask,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/logs.pb.swift:141:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
139 | extension Opentelemetry_Proto_Logs_V1_SeverityNumber: CaseIterable {
140 | // The compiler won't synthesize support with the UNRECOGNIZED case.
141 | public static var allCases: [Opentelemetry_Proto_Logs_V1_SeverityNumber] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | .unspecified,
143 | .trace,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/logs.pb.swift:214:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
212 | extension Opentelemetry_Proto_Logs_V1_LogRecordFlags: CaseIterable {
213 | // The compiler won't synthesize support with the UNRECOGNIZED case.
214 | public static var allCases: [Opentelemetry_Proto_Logs_V1_LogRecordFlags] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .doNotUse,
216 | .traceFlagsMask,
[1171/1263] Emitting module OpenTelemetryProtocolExporterCommon
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/logs.pb.swift:141:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
139 | extension Opentelemetry_Proto_Logs_V1_SeverityNumber: CaseIterable {
140 | // The compiler won't synthesize support with the UNRECOGNIZED case.
141 | public static var allCases: [Opentelemetry_Proto_Logs_V1_SeverityNumber] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | .unspecified,
143 | .trace,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/logs.pb.swift:214:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
212 | extension Opentelemetry_Proto_Logs_V1_LogRecordFlags: CaseIterable {
213 | // The compiler won't synthesize support with the UNRECOGNIZED case.
214 | public static var allCases: [Opentelemetry_Proto_Logs_V1_LogRecordFlags] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .doNotUse,
216 | .traceFlagsMask,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/metrics.pb.swift:138:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
136 | extension Opentelemetry_Proto_Metrics_V1_AggregationTemporality: CaseIterable {
137 | // The compiler won't synthesize support with the UNRECOGNIZED case.
138 | public static var allCases: [Opentelemetry_Proto_Metrics_V1_AggregationTemporality] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | .unspecified,
140 | .delta,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/metrics.pb.swift:192:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 | extension Opentelemetry_Proto_Metrics_V1_DataPointFlags: CaseIterable {
191 | // The compiler won't synthesize support with the UNRECOGNIZED case.
192 | public static var allCases: [Opentelemetry_Proto_Metrics_V1_DataPointFlags] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | .doNotUse,
194 | .noRecordedValueMask,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/trace.pb.swift:372:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
370 | extension Opentelemetry_Proto_Trace_V1_Span.SpanKind: CaseIterable {
371 | // The compiler won't synthesize support with the UNRECOGNIZED case.
372 | public static var allCases: [Opentelemetry_Proto_Trace_V1_Span.SpanKind] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
373 | .unspecified,
374 | .internal,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/trace.pb.swift:446:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
444 | extension Opentelemetry_Proto_Trace_V1_Status.StatusCode: CaseIterable {
445 | // The compiler won't synthesize support with the UNRECOGNIZED case.
446 | public static var allCases: [Opentelemetry_Proto_Trace_V1_Status.StatusCode] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
447 | .unset,
448 | .ok,
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/OpenTelemetryProtocolCommon/proto/metrics.pb.swift:138:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
136 | extension Opentelemetry_Proto_Metrics_V1_AggregationTemporality: CaseIterable {
137 | // The compiler won't synthesize support with the UNRECOGNIZED case.
138 | public static var allCases: [Opentelemetry_Proto_Metrics_V1_AggregationTemporality] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | .unspecified,
140 | .delta,
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/Exporters/Persistence/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/Bridges/OTelSwiftLog/README.md
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Examples/OTLP Exporter/images/zipkin-spans.png
/Users/admin/builder/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
/Users/admin/builder/spi-builder-workspace/Examples/OTLP Exporter/images/prometheus-metrics.png
/Users/admin/builder/spi-builder-workspace/Examples/OTLP Exporter/collector-config.yaml
/Users/admin/builder/spi-builder-workspace/Examples/OTLP Exporter/prometheus.yaml
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Examples/OTLP HTTP Exporter/prometheus.yaml
/Users/admin/builder/spi-builder-workspace/Examples/OTLP HTTP Exporter/docker-compose.yaml
/Users/admin/builder/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/zipkin-spans.png
/Users/admin/builder/spi-builder-workspace/Examples/OTLP HTTP Exporter/collector-config.yaml
/Users/admin/builder/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/prometheus-metrics.png
warning: 'swift-nio-ssl': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/PrivacyInfo.xcprivacy
warning: 'swift-protobuf': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-protobuf/Sources/SwiftProtobuf/CMakeLists.txt
BUILD FAILURE 6.0 macosSpm