Commit 77ce771
feat: update bedrock guardrail cfn primary id (#905)
### *Summary of Changes:*
- Updating the CFN Primary Id for Guardrail to be the ARN. (Verified
this in the AWS Cloudformation Console)

- Updated `BEDROCKAGENTOPERATION` enum.
- Our Bedrock Agent Runtime should support both Agent Operation and
KnowledgeBased Operation [like in Java SDK
v1](https://github.com/mxiamxia/opentelemetry-java-instrumentation/blob/965f7878c79c2be5851f23cf272edd39585f42af/instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/AwsSdkExperimentalAttributesExtractor.java#L133).
Related changes in upstream package:
mxiamxia/opentelemetry-java-instrumentation#13
### *Testing Plan:*
Set up sample apps and manually verified correct span attributes were
generated via auto-instrumentation.
`Java SDK v1`

`Java SDK v2`

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Co-authored-by: Min Xia <[email protected]>1 parent e6d5f69 commit 77ce771
File tree
2 files changed
+5
-0
lines changed- awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers
2 files changed
+5
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| 459 | + | |
| 460 | + | |
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
| |||
0 commit comments