Skip to content

Commit

Permalink
Set swift language versions to 6 and 5
Browse files Browse the repository at this point in the history
  • Loading branch information
slashmo committed Jun 14, 2024
1 parent 3d88339 commit 9010d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let package = Package(
.library(name: "OpenTelemetryXRay", targets: ["OpenTelemetryXRay"]),
],
dependencies: [
.package(url: "https://github.com/slashmo/swift-otel.git", branch: "main"),
.package(url: "https://github.com/slashmo/swift-otel.git", from: "0.9.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
],
targets: [
Expand All @@ -20,5 +20,6 @@ let package = Package(
.target(name: "OpenTelemetryXRay"),
.product(name: "OTel", package: "swift-otel"),
]),
]
],
swiftLanguageVersions: [.version("6"), .v5]
)
2 changes: 1 addition & 1 deletion Sources/OpenTelemetryXRay/Propagator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ extension XRayPropagator {
}

extension XRayPropagator.TraceHeaderParsingError {
public enum Reason: Equatable {
public enum Reason: Equatable, Sendable {
case missingTraceID
case invalidTraceIDLength(Int)
case unsupportedTraceIDVersion(String)
Expand Down

0 comments on commit 9010d2c

Please sign in to comment.