Skip to content

Commit c2d9e54

Browse files
Alex KatsAlex Kats
Alex Kats
authored and
Alex Kats
committed
updated secondary_index attributes to include WarmThroughput
1 parent acf8aa7 commit c2d9e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/dynamodbattributes_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestDynamodbTagsCreateTableInput(t *testing.T) {
122122
assert.Contains(t, attributes, attribute.StringSlice(
123123
"aws.dynamodb.global_secondary_indexes",
124124
[]string{
125-
`{"IndexName":"index1","KeySchema":[{"AttributeName":"attributename","KeyType":"HASH"}],"Projection":{"NonKeyAttributes":["non-key-attributes"],"ProjectionType":""},"OnDemandThroughput":null,"ProvisionedThroughput":null}`,
125+
`{"IndexName":"index1","KeySchema":[{"AttributeName":"attributename","KeyType":"HASH"}],"Projection":{"NonKeyAttributes":["non-key-attributes"],"ProjectionType":""},"OnDemandThroughput":null,"ProvisionedThroughput":null,"WarmThroughput":null}`,
126126
},
127127
))
128128
assert.Contains(t, attributes, attribute.StringSlice(
@@ -338,7 +338,7 @@ func TestDynamodbTagsUpdateTableInput(t *testing.T) {
338338
assert.Contains(t, attributes, attribute.StringSlice(
339339
"aws.dynamodb.global_secondary_index_updates",
340340
[]string{
341-
`{"Create":{"IndexName":"index1","KeySchema":[{"AttributeName":"attribute","KeyType":"HASH"}],"Projection":{"NonKeyAttributes":["attribute1","attribute2"],"ProjectionType":"ALL"},"OnDemandThroughput":null,"ProvisionedThroughput":null},"Delete":null,"Update":null}`,
341+
`{"Create":{"IndexName":"index1","KeySchema":[{"AttributeName":"attribute","KeyType":"HASH"}],"Projection":{"NonKeyAttributes":["attribute1","attribute2"],"ProjectionType":"ALL"},"OnDemandThroughput":null,"ProvisionedThroughput":null,"WarmThroughput":null},"Delete":null,"Update":null}`,
342342
},
343343
))
344344
assert.Contains(t, attributes, attribute.Float64("aws.dynamodb.provisioned_read_capacity", 123))

0 commit comments

Comments
 (0)