Skip to content

Commit

Permalink
support value size type
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Jul 20, 2024
1 parent 3386928 commit 228ed06
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,28 @@ public Worker(WorkerOptions options, OpenTelemetry openTelemetry) {
this.operationWriteSuccessAttributes =
Attributes.builder()
.put("type", "write")
.put("value.size", options.valueSize)
.put("worker", options.workerName)
.put("response", "success")
.build();
this.operationWriteFailedAttributes =
Attributes.builder()
.put("type", "write")
.put("value.size", options.valueSize)
.put("worker", options.workerName)
.put("response", "failed")
.build();
this.operationReadSuccessAttributes =
Attributes.builder()
.put("type", "read")
.put("value.size", options.valueSize)
.put("worker", options.workerName)
.put("response", "success")
.build();
this.operationReadFailedAttributes =
Attributes.builder()
.put("type", "read")
.put("value.size", options.valueSize)
.put("worker", options.workerName)
.put("response", "failed")
.build();
Expand Down

0 comments on commit 228ed06

Please sign in to comment.