Skip to content

Commit 1a6cda3

Browse files
committed
Update muzzle
1 parent e8a70b6 commit 1a6cda3

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

instrumentation/aws-sdk/aws-sdk-2.2/javaagent/build.gradle.kts

+18-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ muzzle {
1111
// client, which is not target of instrumentation anyways.
1212
extraDependency("software.amazon.awssdk:protocol-core")
1313

14+
excludeInstrumentationName("aws-sdk-2.2-bedrock-runtime")
1415
excludeInstrumentationName("aws-sdk-2.2-sqs")
1516
excludeInstrumentationName("aws-sdk-2.2-sns")
1617
excludeInstrumentationName("aws-sdk-2.2-lambda")
@@ -43,6 +44,7 @@ muzzle {
4344
// client, which is not target of instrumentation anyways.
4445
extraDependency("software.amazon.awssdk:protocol-core")
4546

47+
excludeInstrumentationName("aws-sdk-2.2-bedrock-runtime")
4648
excludeInstrumentationName("aws-sdk-2.2-sns")
4749
excludeInstrumentationName("aws-sdk-2.2-lambda")
4850

@@ -58,6 +60,7 @@ muzzle {
5860
// client, which is not target of instrumentation anyways.
5961
extraDependency("software.amazon.awssdk:protocol-core")
6062

63+
excludeInstrumentationName("aws-sdk-2.2-bedrock-runtime")
6164
excludeInstrumentationName("aws-sdk-2.2-sqs")
6265
excludeInstrumentationName("aws-sdk-2.2-lambda")
6366

@@ -72,12 +75,25 @@ muzzle {
7275
// client, which is not target of instrumentation anyways.
7376
extraDependency("software.amazon.awssdk:protocol-core")
7477

78+
excludeInstrumentationName("aws-sdk-2.2-bedrock-runtime")
7579
excludeInstrumentationName("aws-sdk-2.2-sqs")
7680
excludeInstrumentationName("aws-sdk-2.2-sns")
7781

7882
// several software.amazon.awssdk artifacts are missing for this version
7983
skip("2.17.200")
8084
}
85+
pass {
86+
group.set("software.amazon.awssdk")
87+
module.set("bedrock-runtime")
88+
versions.set("[2.25.63,)")
89+
// Used by all SDK services, the only case it isn't is an SDK extension such as a custom HTTP
90+
// client, which is not target of instrumentation anyways.
91+
extraDependency("software.amazon.awssdk:protocol-core")
92+
93+
excludeInstrumentationName("aws-sdk-2.2-lambda")
94+
excludeInstrumentationName("aws-sdk-2.2-sqs")
95+
excludeInstrumentationName("aws-sdk-2.2-sns")
96+
}
8197
}
8298

8399
dependencies {
@@ -127,8 +143,8 @@ testing {
127143
if (findProperty("testLatestDeps") as Boolean) {
128144
implementation("software.amazon.awssdk:bedrockruntime:+")
129145
} else {
130-
// First .0 release with Converse API
131-
implementation("software.amazon.awssdk:bedrockruntime:2.26.0")
146+
// First release with Converse API
147+
implementation("software.amazon.awssdk:bedrockruntime:2.25.63")
132148
}
133149
}
134150
}

instrumentation/aws-sdk/aws-sdk-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/awssdk/v2_2/BedrockRuntimeInstrumentationModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
public class BedrockRuntimeInstrumentationModule extends AbstractAwsSdkInstrumentationModule {
2020

2121
public BedrockRuntimeInstrumentationModule() {
22-
super("aws-sdk-2.2-bedrock");
22+
super("aws-sdk-2.2-bedrock-runtime");
2323
}
2424

2525
@Override

instrumentation/aws-sdk/aws-sdk-2.2/library/build.gradle.kts

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ dependencies {
1414
compileOnly("software.amazon.awssdk:json-utils:2.17.0")
1515
compileOnly(project(":muzzle")) // For @NoMuzzle
1616

17-
// don't use library to make sure base test is run with the floor version.
18-
// bedrock runtime is tested separately with newer versions.
19-
compileOnly("software.amazon.awssdk:bedrockruntime:2.26.0")
17+
// Don't use library to make sure base test is run with the floor version.
18+
// bedrock runtime is tested separately in testBedrockRuntime.
19+
// First release with Converse API
20+
compileOnly("software.amazon.awssdk:bedrockruntime:2.25.63")
2021

2122
testImplementation(project(":instrumentation:aws-sdk:aws-sdk-2.2:testing"))
2223

@@ -68,8 +69,7 @@ testing {
6869
if (findProperty("testLatestDeps") as Boolean) {
6970
implementation("software.amazon.awssdk:bedrockruntime:+")
7071
} else {
71-
// First .0 release with Converse API
72-
implementation("software.amazon.awssdk:bedrockruntime:2.26.0")
72+
implementation("software.amazon.awssdk:bedrockruntime:2.25.63")
7373
}
7474
}
7575
}

instrumentation/aws-sdk/aws-sdk-2.2/testing/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies {
1111

1212
// compileOnly because we never want to pin the low version implicitly; need to add dependencies
1313
// explicitly in user projects, e.g. using testLatestDeps.
14-
compileOnly("software.amazon.awssdk:bedrockruntime:2.26.0")
14+
compileOnly("software.amazon.awssdk:bedrockruntime:2.25.63")
1515
compileOnly("software.amazon.awssdk:dynamodb:2.2.0")
1616
compileOnly("software.amazon.awssdk:ec2:2.2.0")
1717
compileOnly("software.amazon.awssdk:kinesis:2.2.0")

0 commit comments

Comments
 (0)