Skip to content

Commit 940e8ab

Browse files
committed
pr changes
1 parent 15a60ac commit 940e8ab

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

dd-java-agent/instrumentation/aws-java-sdk-1.11.0/src/test/groovy/AWS1ClientTest.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,7 @@ abstract class AWS1ClientTest extends VersionedNamingTestBase {
469469
}
470470

471471
cleanup:
472-
// Clean up the environment variable
473-
removeEnvConfig("AWS_LAMBDA_FUNCTION_NAME", false)
472+
474473
if (jsonPointerStr != null) {
475474
jsonPointer.set(null)
476475
}

dd-java-agent/instrumentation/aws-java-sdk-2.2/src/main/java/datadog/trace/instrumentation/aws/v2/AwsSdkClientDecorator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public AgentSpan onSdkRequest(
208208
}
209209
}
210210

211-
// Set peer.service based on environment for serverless functions
211+
// Set peer.service based on Config for serverless functions
212212
if (Config.get().isAwsServerless()) {
213213
URI uri = httpRequest.getUri();
214214
String hostname = uri.getHost();

dd-java-agent/instrumentation/aws-java-sdk-2.2/src/test/groovy/Aws2ClientTest.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,6 @@ abstract class Aws2ClientTest extends VersionedNamingTestBase {
518518
}
519519
}
520520

521-
cleanup:
522-
// Clean up the environment variable
523-
removeEnvConfig("AWS_LAMBDA_FUNCTION_NAME", false)
524-
525521
where:
526522
service | operation | method | path | builder | call | body | requestId
527523
"S3" | "CreateBucket" | "PUT" | "/test-bucket" | S3Client.builder() | { c -> c.createBucket(CreateBucketRequest.builder().bucket("test-bucket").build()) } | "" | "UNKNOWN"

0 commit comments

Comments
 (0)