Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Release Notes.
* Fix servicecomb plugin trace break.
* Adapt Armeria's plugins to the latest version 1.22.x
* Fix tomcat-10x-plugin and add test case to support tomcat7.x-8.x-9.x.
* Fix clickhouse0.3.2 plugin executeBatch method

#### Documentation
* Update docs of Tracing APIs, reorganize the API docs into six parts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void clearBatch() throws SQLException {

@Override
public int[] executeBatch() throws SQLException {
return PreparedStatementTracing.execute(realStatement, connectInfo, "executeBatch", "", new PreparedStatementTracing.Executable<int[]>() {
return PreparedStatementTracing.execute(realStatement, connectInfo, "executeBatch", sql, new PreparedStatementTracing.Executable<int[]>() {
@Override
public int[] exe(PreparedStatement realStatement, String sql) throws SQLException {
return realStatement.executeBatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public void testBatch() throws SQLException, MalformedURLException {
TraceSegment traceSegment = segmentStorage.getTraceSegments().get(0);
List<AbstractTracingSpan> spans = SegmentHelper.getSpans(traceSegment);
assertThat(spans.size(), is(1));
assertDBSpan(spans.get(0), "ClickHouse/JDBC/PreparedStatement/executeBatch", "");
assertDBSpan(spans.get(0), "ClickHouse/JDBC/PreparedStatement/executeBatch", "UPDATE test SET a = ? WHERE b = ?");

}

Expand Down