diff --git a/.spi.yml b/.spi.yml index 65d2471..e343a14 100644 --- a/.spi.yml +++ b/.spi.yml @@ -1,5 +1,5 @@ version: 1 builder: configs: - - documentation_targets: [GRPCHealthService, GRPCInterceptors] + - documentation_targets: [GRPCHealthService, GRPCOTelTracingInterceptors] swift_version: 6.0 diff --git a/Package.swift b/Package.swift index 63028e8..9595224 100644 --- a/Package.swift +++ b/Package.swift @@ -27,8 +27,8 @@ let products: [Product] = [ targets: ["GRPCReflectionService"] ), .library( - name: "GRPCInterceptors", - targets: ["GRPCInterceptors"] + name: "GRPCOTelTracingInterceptors", + targets: ["GRPCOTelTracingInterceptors"] ), .library( name: "GRPCServiceLifecycle", @@ -115,9 +115,9 @@ let targets: [Target] = [ swiftSettings: defaultSwiftSettings ), - // Common interceptors for gRPC. + // gRPC OTel tracing interceptors. .target( - name: "GRPCInterceptors", + name: "GRPCOTelTracingInterceptors", dependencies: [ .product(name: "GRPCCore", package: "grpc-swift"), .product(name: "Tracing", package: "swift-distributed-tracing"), @@ -125,9 +125,9 @@ let targets: [Target] = [ swiftSettings: defaultSwiftSettings ), .testTarget( - name: "GRPCInterceptorsTests", + name: "GRPCOTelTracingInterceptorsTests", dependencies: [ - .target(name: "GRPCInterceptors"), + .target(name: "GRPCOTelTracingInterceptors"), .product(name: "GRPCCore", package: "grpc-swift"), .product(name: "Tracing", package: "swift-distributed-tracing"), ], diff --git a/Sources/GRPCInterceptors/HookedAsyncSequence.swift b/Sources/GRPCOTelTracingInterceptors/HookedAsyncSequence.swift similarity index 100% rename from Sources/GRPCInterceptors/HookedAsyncSequence.swift rename to Sources/GRPCOTelTracingInterceptors/HookedAsyncSequence.swift diff --git a/Sources/GRPCInterceptors/HookedWriter.swift b/Sources/GRPCOTelTracingInterceptors/HookedWriter.swift similarity index 100% rename from Sources/GRPCInterceptors/HookedWriter.swift rename to Sources/GRPCOTelTracingInterceptors/HookedWriter.swift diff --git a/Sources/GRPCInterceptors/Tracing/ClientOTelTracingInterceptor.swift b/Sources/GRPCOTelTracingInterceptors/Tracing/ClientOTelTracingInterceptor.swift similarity index 100% rename from Sources/GRPCInterceptors/Tracing/ClientOTelTracingInterceptor.swift rename to Sources/GRPCOTelTracingInterceptors/Tracing/ClientOTelTracingInterceptor.swift diff --git a/Sources/GRPCInterceptors/Tracing/ServerOTelTracingInterceptor.swift b/Sources/GRPCOTelTracingInterceptors/Tracing/ServerOTelTracingInterceptor.swift similarity index 100% rename from Sources/GRPCInterceptors/Tracing/ServerOTelTracingInterceptor.swift rename to Sources/GRPCOTelTracingInterceptors/Tracing/ServerOTelTracingInterceptor.swift diff --git a/Sources/GRPCInterceptors/Tracing/SpanAttributes+GRPCTracingKeys.swift b/Sources/GRPCOTelTracingInterceptors/Tracing/SpanAttributes+GRPCTracingKeys.swift similarity index 100% rename from Sources/GRPCInterceptors/Tracing/SpanAttributes+GRPCTracingKeys.swift rename to Sources/GRPCOTelTracingInterceptors/Tracing/SpanAttributes+GRPCTracingKeys.swift diff --git a/Tests/GRPCInterceptorsTests/OTelTracingInterceptorTests.swift b/Tests/GRPCOTelTracingInterceptorsTests/GRPCOTelTracingInterceptorsTests.swift similarity index 99% rename from Tests/GRPCInterceptorsTests/OTelTracingInterceptorTests.swift rename to Tests/GRPCOTelTracingInterceptorsTests/GRPCOTelTracingInterceptorsTests.swift index fcedac5..affb3ae 100644 --- a/Tests/GRPCInterceptorsTests/OTelTracingInterceptorTests.swift +++ b/Tests/GRPCOTelTracingInterceptorsTests/GRPCOTelTracingInterceptorsTests.swift @@ -15,7 +15,7 @@ */ import GRPCCore -import GRPCInterceptors +import GRPCOTelTracingInterceptors import Testing import Tracing diff --git a/Tests/GRPCInterceptorsTests/PeerAddressTests.swift b/Tests/GRPCOTelTracingInterceptorsTests/PeerAddressTests.swift similarity index 97% rename from Tests/GRPCInterceptorsTests/PeerAddressTests.swift rename to Tests/GRPCOTelTracingInterceptorsTests/PeerAddressTests.swift index dc4249e..70b1dfe 100644 --- a/Tests/GRPCInterceptorsTests/PeerAddressTests.swift +++ b/Tests/GRPCOTelTracingInterceptorsTests/PeerAddressTests.swift @@ -14,7 +14,7 @@ * limitations under the License. */ -import GRPCInterceptors +import GRPCOTelTracingInterceptors import Testing @Suite("PeerAddress tests") diff --git a/Tests/GRPCInterceptorsTests/TracingTestsUtilities.swift b/Tests/GRPCOTelTracingInterceptorsTests/TracingTestsUtilities.swift similarity index 100% rename from Tests/GRPCInterceptorsTests/TracingTestsUtilities.swift rename to Tests/GRPCOTelTracingInterceptorsTests/TracingTestsUtilities.swift