Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorsesan committed Nov 14, 2024
1 parent adadd52 commit 0837057
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@ static class Builder {
private CategoryFunction categoryFunction = span -> "default";
private long maxBytesPerSecond = 1024; // Default to 1 KB/s
private long timeWindowInMillis = 1000; // Default to 1 second

private Builder(SpanExporter delegate) {
this.delegate = delegate;
}

Builder maxBytesPerSecond(long maxBytesPerSecond) {
this.maxBytesPerSecond = maxBytesPerSecond;
return this;
}

Builder timeWindow(Duration timeWindow) {
this.timeWindow = timeWindow;
return this;
}

BandwidthThrottlingExporter build() {
return new BandwidthThrottlingExporter(this);
}
}
}
}

0 comments on commit 0837057

Please sign in to comment.