Build Information
Successful build of opentelemetry-swift, reference main (e4a311
), with Swift 6.1 for macOS (SPM) on 1 May 2025 04:21:41 UTC.
Swift 6 data race errors: 171
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public func spanBuilder(spanName: String) -> SpanBuilder {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/DefaultTracerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'DefaultTracerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultTracerProvider: TracerProvider {
| `- note: class 'DefaultTracerProvider' does not conform to the 'Sendable' protocol
9 | public static let instance = DefaultTracerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'DefaultTracerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public func get(instrumentationName: String, instrumentationVersion: String? = nil) -> Tracer {
[79/110] Compiling OpenTelemetryApi LongGaugeBuilder.swift
[80/110] Compiling OpenTelemetryApi LongHistogram.swift
[81/110] Compiling OpenTelemetryApi LongHistogramBuilder.swift
[82/110] Compiling OpenTelemetryApi LongUpDownCounter.swift
[83/110] Compiling OpenTelemetryApi LongUpDownCounterBuilder.swift
[84/110] Compiling OpenTelemetryApi MeterBuilder.swift
[85/110] Compiling OpenTelemetryApi ObservableDoubleCounter.swift
[86/110] Compiling OpenTelemetryApi ObservableDoubleGauge.swift
[87/110] Compiling OpenTelemetryApi ObservableDoubleMeasurement.swift
[88/110] Compiling OpenTelemetryApi ObservableDoubleUpDownCounter.swift
[89/110] Compiling OpenTelemetryApi ObservableLongCounter.swift
[90/110] Compiling OpenTelemetryApi ContextManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[91/110] Compiling OpenTelemetryApi OpenTelemetryContextProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[92/110] Compiling OpenTelemetryApi TaskLocalContextManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[93/110] Compiling OpenTelemetryApi StringUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[94/110] Compiling OpenTelemetryApi SwiftExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[95/110] Compiling OpenTelemetryApi TracestateUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[96/110] Compiling OpenTelemetryApi DefaultLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[97/110] Compiling OpenTelemetryApi DefaultLoggerProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[98/110] Compiling OpenTelemetryApi EventBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[99/110] Compiling OpenTelemetryApi LogRecordBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[100/110] Compiling OpenTelemetryApi Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:20:24: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
16 | /// If you require dynamic context injection, you will need a custom context manager.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | public class TaskLocalContextManager: ContextManager {
| `- note: class 'TaskLocalContextManager' does not conform to the 'Sendable' protocol
19 | #if swift(>=5.9)
20 | package static let instance = TaskLocalContextManager()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'TaskLocalContextManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | #else
22 | static let instance = TaskLocalContextManager()
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:24: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | |- warning: static property '$context' is not concurrency-safe because non-'Sendable' type 'TaskLocal<[String : AnyObject]>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: add '@MainActor' to make static property '$context' part of global actor 'MainActor'
| | `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:1:12: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | static let $context = TaskLocal(wrappedValue: [String: AnyObject]())
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
macro expansion @TaskLocal:3:19: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:25:58: note: expanded code originates here
23 | #endif
24 |
25 | @TaskLocal static var context = [String: AnyObject]()
+--- macro expansion @TaskLocal -------------------------------------
|1 | {
|2 | get {
|3 | $context .get()
| | `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+--------------------------------------------------------------------
26 |
27 | public func getCurrentContextValue(forKey key: OpenTelemetryContextKeys) -> AnyObject? {
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:39:40: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 | context[key.rawValue] = value
38 |
39 | return try await Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Context/TaskLocalContextManager.swift:46:34: warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
44 | context[key.rawValue] = value
45 |
46 | return try Self.$context.withValue(context, operation: operation)
| `- warning: type 'AnyObject' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:10:22: warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
| |- warning: static property 'instanceWithDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:11:22: warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
6 | import Foundation
7 |
8 | public class DefaultLogger: Logger {
| `- note: class 'DefaultLogger' does not conform to the 'Sendable' protocol
9 |
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
| |- warning: static property 'instanceNoDomain' is not concurrency-safe because non-'Sendable' type 'DefaultLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instanceNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLogger.swift:12:22: warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
10 | private static let instanceWithDomain = DefaultLogger(true)
11 | private static let instanceNoDomain = DefaultLogger(false)
12 | private static let noopLogRecordBuilder = NoopLogRecordBuilder()
| |- warning: static property 'noopLogRecordBuilder' is not concurrency-safe because non-'Sendable' type 'DefaultLogger.NoopLogRecordBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopLogRecordBuilder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private var hasDomain: Bool
:
37 | }
38 |
39 | private class NoopLogRecordBuilder: EventBuilder {
| `- note: class 'NoopLogRecordBuilder' does not conform to the 'Sendable' protocol
40 | func setTimestamp(_ timestamp: Date) -> Self {
41 | return self
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:9:23: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'any LoggerProvider' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/LoggerProvider.swift:8:17: note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public protocol LoggerProvider: AnyObject {
| `- note: protocol 'LoggerProvider' does not conform to the 'Sendable' protocol
9 | /// Returns a Logger for a given name and version
10 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:10:28: warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public class DefaultLoggerProvider: LoggerProvider {
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
| |- warning: static property 'noopBuilderWithDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderWithDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
12 |
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Logs/DefaultLoggerProvider.swift:11:28: warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let instance: LoggerProvider = DefaultLoggerProvider()
10 | fileprivate static let noopBuilderWithDomain = NoopLoggerBuilder(true)
11 | fileprivate static let noopBuilderNoDomain = NoopLoggerBuilder(false)
| |- warning: static property 'noopBuilderNoDomain' is not concurrency-safe because non-'Sendable' type 'NoopLoggerBuilder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noopBuilderNoDomain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public func get(instrumentationScopeName: String) -> Logger {
:
20 | }
21 | // swiftlint:disable private_over_fileprivate
22 | fileprivate class NoopLoggerBuilder: LoggerBuilder {
| `- note: class 'NoopLoggerBuilder' does not conform to the 'Sendable' protocol
23 | // swiftlint:enable private_over_fileprivate
24 | private let hasDomain: Bool
[101/110] Compiling OpenTelemetryApi SpanContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[102/110] Compiling OpenTelemetryApi SpanException.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[103/110] Compiling OpenTelemetryApi SpanId.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[104/110] Compiling OpenTelemetryApi SpanKind.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[105/110] Compiling OpenTelemetryApi Status.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[106/110] Compiling OpenTelemetryApi TraceFlags.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[107/110] Compiling OpenTelemetryApi TraceId.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[108/110] Compiling OpenTelemetryApi TraceState.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[109/110] Compiling OpenTelemetryApi Tracer.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
[110/110] Compiling OpenTelemetryApi TracerProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/SpanId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a span identifier. A valid span identifier is an 8-byte array with at
9 | /// least one non-zero byte.
10 | public struct SpanId: Equatable, Comparable, Hashable, CustomStringConvertible, Codable {
| `- note: consider making struct 'SpanId' conform to the 'Sendable' protocol
11 | public static let size = 8
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = SpanId(id: invalidId)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'SpanId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the SpanId.
/Users/admin/builder/spi-builder-workspace/Sources/OpenTelemetryApi/Trace/TraceId.swift:13:23: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// A struct that represents a trace identifier. A valid trace identifier is a 16-byte array with at
9 | /// least one non-zero byte.
10 | public struct TraceId: Comparable, Hashable, CustomStringConvertible, Equatable, Codable {
| `- note: consider making struct 'TraceId' conform to the 'Sendable' protocol
11 | public static let size = 16
12 | public static let invalidId: UInt64 = 0
13 | public static let invalid = TraceId()
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'TraceId' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'invalid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | // The internal representation of the TraceId.
Build complete! (6.93s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "opentelemetry-swift",
"name" : "opentelemetry-swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "OpenTelemetryApi",
"targets" : [
"OpenTelemetryApi"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OpenTelemetryApi",
"module_type" : "SwiftTarget",
"name" : "OpenTelemetryApi",
"path" : "Sources/OpenTelemetryApi",
"product_memberships" : [
"OpenTelemetryApi"
],
"sources" : [
"Baggage/Baggage.swift",
"Baggage/BaggageBuilder.swift",
"Baggage/BaggageManager.swift",
"Baggage/BaggageManagerProvider.swift",
"Baggage/DefaultBaggage.swift",
"Baggage/DefaultBaggageBuilder.swift",
"Baggage/DefaultBaggageManager.swift",
"Baggage/DefaultBaggageManagerProvider.swift",
"Baggage/EmptyBaggage.swift",
"Baggage/EmptyBaggageBuilder.swift",
"Baggage/Entry.swift",
"Baggage/EntryKey.swift",
"Baggage/EntryMetadata.swift",
"Baggage/EntryValue.swift",
"Baggage/Propagation/JaegerBaggagePropagator.swift",
"Baggage/Propagation/TextMapBaggagePropagator.swift",
"Baggage/Propagation/W3CBaggagePropagator.swift",
"Baggage/Propagation/ZipkinBaggagePropagator.swift",
"Common/AttributeArray.swift",
"Common/AttributeSet.swift",
"Common/AttributeValue.swift",
"Context/ActivityContextManager.swift",
"Context/ContextManager.swift",
"Context/OpenTelemetryContextProvider.swift",
"Context/TaskLocalContextManager.swift",
"Internal/StringUtils.swift",
"Internal/SwiftExtensions.swift",
"Internal/TracestateUtils.swift",
"Logs/DefaultLogger.swift",
"Logs/DefaultLoggerProvider.swift",
"Logs/EventBuilder.swift",
"Logs/LogRecordBuilder.swift",
"Logs/Logger.swift",
"Logs/LoggerBuilder.swift",
"Logs/LoggerProvider.swift",
"Logs/Severity.swift",
"Metrics/DefaultMeterProvider.swift",
"Metrics/Instruments/Gauge/BoundMeasureMetric.swift",
"Metrics/Instruments/Gauge/DoubleObserverMetric.swift",
"Metrics/Instruments/Gauge/DoubleObserverMetricHandle.swift",
"Metrics/Instruments/Gauge/IntObserverMetric.swift",
"Metrics/Instruments/Gauge/IntObserverMetricHandle.swift",
"Metrics/Instruments/Gauge/MeasureMetric.swift",
"Metrics/Instruments/Histogram/BoundHistogramMetric.swift",
"Metrics/Instruments/Histogram/HistogramMetric.swift",
"Metrics/Instruments/Sum/BoundCounterMetric.swift",
"Metrics/Instruments/Sum/CounterMetric.swift",
"Metrics/LabelSet.swift",
"Metrics/Meter.swift",
"Metrics/MeterProvider.swift",
"Metrics/ProxyMeter.swift",
"Metrics/Raw/BoundRawCounterMetric.swift",
"Metrics/Raw/BoundRawHistogramMetric.swift",
"Metrics/Raw/RawCounterMetric.swift",
"Metrics/Raw/RawHistogramMetric.swift",
"Metrics/Stable/DefaultStableMeter.swift",
"Metrics/Stable/DefaultStableMeterProvider.swift",
"Metrics/Stable/DoubleCounter.swift",
"Metrics/Stable/DoubleCounterBuilder.swift",
"Metrics/Stable/DoubleGaugeBuilder.swift",
"Metrics/Stable/DoubleHistogram.swift",
"Metrics/Stable/DoubleHistogramBuilder.swift",
"Metrics/Stable/DoubleUpDownCounter.swift",
"Metrics/Stable/DoubleUpDownCounterBuilder.swift",
"Metrics/Stable/LongCounter.swift",
"Metrics/Stable/LongCounterBuilder.swift",
"Metrics/Stable/LongGaugeBuilder.swift",
"Metrics/Stable/LongHistogram.swift",
"Metrics/Stable/LongHistogramBuilder.swift",
"Metrics/Stable/LongUpDownCounter.swift",
"Metrics/Stable/LongUpDownCounterBuilder.swift",
"Metrics/Stable/MeterBuilder.swift",
"Metrics/Stable/ObservableDoubleCounter.swift",
"Metrics/Stable/ObservableDoubleGauge.swift",
"Metrics/Stable/ObservableDoubleMeasurement.swift",
"Metrics/Stable/ObservableDoubleUpDownCounter.swift",
"Metrics/Stable/ObservableLongCounter.swift",
"Metrics/Stable/ObservableLongGauge.swift",
"Metrics/Stable/ObservableLongMeasurement.swift",
"Metrics/Stable/ObservableLongUpDownCounter.swift",
"Metrics/Stable/StableMeter.swift",
"Metrics/Stable/StableMeterProvider.swift",
"OpenTelemetry.swift",
"Propagation/ContextPropagators.swift",
"Propagation/DefaultContextPropagators.swift",
"Trace/DefaultTracer.swift",
"Trace/DefaultTracerProvider.swift",
"Trace/PropagatedSpan.swift",
"Trace/PropagatedSpanBuilder.swift",
"Trace/Propagation/B3Propagator.swift",
"Trace/Propagation/BinaryFormattable.swift",
"Trace/Propagation/JaegerPropagator.swift",
"Trace/Propagation/TextMapPropagator.swift",
"Trace/Propagation/W3CTraceContextPropagator.swift",
"Trace/SemanticAttributes.swift",
"Trace/Span.swift",
"Trace/SpanBuilder.swift",
"Trace/SpanContext.swift",
"Trace/SpanException.swift",
"Trace/SpanId.swift",
"Trace/SpanKind.swift",
"Trace/Status.swift",
"Trace/TraceFlags.swift",
"Trace/TraceId.swift",
"Trace/TraceState.swift",
"Trace/Tracer.swift",
"Trace/TracerProvider.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.