Skip to content

Commit

Permalink
Merge pull request #1827 from newrelic/1793_DynamoDbDoubleExternals
Browse files Browse the repository at this point in the history
1793 dynamo db double externals
  • Loading branch information
jbedell-newrelic authored Mar 29, 2024
2 parents 4527050 + e9aaa73 commit b83d51f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,116 +18,116 @@ final class DefaultDynamoDbAsyncClient_Instrumentation {

private final SdkClientConfiguration clientConfiguration = Weaver.callOriginal();

@Trace
@Trace(leaf = true)
public CompletableFuture<ScanResponse> scan(ScanRequest scanRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "scan", scanRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<PutItemResponse> putItem(PutItemRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "putItem", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<GetItemResponse> getItem(GetItemRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "getItem", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<DeleteItemResponse> deleteItem(DeleteItemRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "deleteItem", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<ListTablesResponse> listTables(ListTablesRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "listTables", request.exclusiveStartTableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<DescribeTableResponse> describeTable(DescribeTableRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "describeTable", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<CreateTableResponse> createTable(CreateTableRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "createTable", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<DeleteTableResponse> deleteTable(DeleteTableRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "deleteTable", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<BatchGetItemResponse> batchGetItem(BatchGetItemRequest batchGetItemRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "batchGetItem", "batch", getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<BatchWriteItemResponse> batchWriteItem(BatchWriteItemRequest batchWriteItemRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "batchWriteItem", "batch", getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<ListTagsOfResourceResponse> listTagsOfResource(ListTagsOfResourceRequest listTagsOfResourceRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "listTagsOfResource", listTagsOfResourceRequest.resourceArn(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<QueryResponse> query(QueryRequest queryRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "query", queryRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}


@Trace
@Trace(leaf = true)
public CompletableFuture<UpdateItemResponse> updateItem(UpdateItemRequest updateItemRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "updateItem", updateItemRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<UpdateTableResponse> updateTable(UpdateTableRequest updateTableRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "updateTable", updateTableRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<UpdateTimeToLiveResponse> updateTimeToLive(UpdateTimeToLiveRequest updateTimeToLiveRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "updateTimeToLive", updateTimeToLiveRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<DescribeLimitsResponse> describeLimits(DescribeLimitsRequest describeLimitsRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "describeLimits", null, getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "untagResource", untagResourceRequest.resourceArn(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "tagResource", tagResourceRequest.resourceArn(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CompletableFuture<DescribeTimeToLiveResponse> describeTimeToLive(DescribeTimeToLiveRequest describeTimeToLiveRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "describeTimeToLive", describeTimeToLiveRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,115 +16,115 @@
final class DefaultDynamoDbClient_Instrumentation {
private final SdkClientConfiguration clientConfiguration = Weaver.callOriginal();

@Trace
@Trace(leaf = true)
public GetItemResponse getItem(GetItemRequest getItemRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "getItem", getItemRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public ListTagsOfResourceResponse listTagsOfResource(ListTagsOfResourceRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "listTagsOfResource", null, getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public UntagResourceResponse untagResource(UntagResourceRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "untagResource", null, getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public BatchGetItemResponse batchGetItem(BatchGetItemRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "batchGetItem", "batch", getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public BatchWriteItemResponse batchWriteItem(BatchWriteItemRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "batchWriteItem", "batch", getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public PutItemResponse putItem(PutItemRequest putItemRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "putItem", putItemRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public DeleteItemResponse deleteItem(DeleteItemRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "deleteItem", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public ListTablesResponse listTables(ListTablesRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "listTables", request.exclusiveStartTableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public CreateTableResponse createTable(CreateTableRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "createTable", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public DeleteTableResponse deleteTable(DeleteTableRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "deleteTable", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public DescribeTableResponse describeTable(DescribeTableRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "describeTable", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public ScanResponse scan(ScanRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "scan", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public QueryResponse query(QueryRequest queryRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "query", queryRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public UpdateItemResponse updateItem(UpdateItemRequest updateItemRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "updateItem", updateItemRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public UpdateTableResponse updateTable(UpdateTableRequest updateTableRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "updateTable", updateTableRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public UpdateTimeToLiveResponse updateTimeToLive(UpdateTimeToLiveRequest request) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "updateTimeToLive", request.tableName(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public DescribeLimitsResponse describeLimits(DescribeLimitsRequest describeLimitsRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "describeLimits", null, getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "tagResource", tagResourceRequest.resourceArn(), getEndpoint());
return Weaver.callOriginal();
}

@Trace
@Trace(leaf = true)
public DescribeTimeToLiveResponse describeTimeToLive(DescribeTimeToLiveRequest describeTimeToLiveRequest) {
DynamoDBMetricUtil.metrics(NewRelic.getAgent().getTracedMethod(), "describeTimeToLive", describeTimeToLiveRequest.tableName(), getEndpoint());
return Weaver.callOriginal();
Expand Down

0 comments on commit b83d51f

Please sign in to comment.