Skip to content

Commit

Permalink
added missing os version gates (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych authored Aug 5, 2024
1 parent 0dd37c4 commit 32ea291
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Examples/Logging Tracer/LoggingTracer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class LoggingTracer: Tracer {
}

#if canImport(_Concurrency)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func withActiveSpan<T>(_ operation: (any SpanBase) async throws -> T) async rethrows -> T {
let span = self.startSpan()
defer {
Expand Down
1 change: 1 addition & 0 deletions Sources/OpenTelemetryApi/Trace/PropagatedSpanBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class PropagatedSpanBuilder: SpanBuilder {
}

#if canImport(_Concurrency)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func withActiveSpan<T>(_ operation: (any SpanBase) async throws -> T) async rethrows -> T {
let span = self.startSpan()
defer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class DefaultBaggageManagerTests: DefaultBaggageManagerTestsInfo {
}

#if canImport(_Concurrency)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
class DefaultBaggageManagerConcurrency: DefaultBaggageManagerTestsInfo {
override var contextManagers: [any ContextManager] {
Self.concurrencyContextManagers()
Expand Down

0 comments on commit 32ea291

Please sign in to comment.