diff --git a/IntegrationTests/Services/AWSSTSIntegrationTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift b/IntegrationTests/Services/AWSSTSIntegrationTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift index 28bb2d3be6c..1026815a811 100644 --- a/IntegrationTests/Services/AWSSTSIntegrationTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift +++ b/IntegrationTests/Services/AWSSTSIntegrationTests/STSAssumeRoleAWSCredentialIdentityResolverTests.swift @@ -78,7 +78,7 @@ class STSAssumeRoleAWSCredentialIdentityResolverTests: XCTestCase { } // Right now opentelemetry-swift doesnt support linux or visionos - #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) + #if AWS_SWIFT_SDK_ENABLE_OPENTELEMETRY && (os(macOS) || os(iOS) || os(watchOS) || os(tvOS)) // OpenTelemetry Tracing works as expected func testGetCallerIdentityWithOTelTracing() async throws { let inMemoryExporter = InMemoryExporter()