mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 09:57:59 +01:00
Expand the default max packet size for Dogstatsd
This commit is contained in:
committed by
Jon Chambers
parent
1e5fadc440
commit
0f52d2e464
@@ -11,6 +11,7 @@ import io.micrometer.statsd.StatsdFlavor;
|
||||
import java.time.Duration;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Positive;
|
||||
|
||||
public class DogstatsdConfiguration implements StatsdConfig {
|
||||
|
||||
@@ -22,6 +23,10 @@ public class DogstatsdConfiguration implements StatsdConfig {
|
||||
@NotBlank
|
||||
private String environment;
|
||||
|
||||
@JsonProperty
|
||||
@Positive
|
||||
private int maxPacketLength = 8932;
|
||||
|
||||
@Override
|
||||
public Duration step() {
|
||||
return step;
|
||||
@@ -41,4 +46,9 @@ public class DogstatsdConfiguration implements StatsdConfig {
|
||||
// We have no Micrometer key/value pairs to report, so always return `null`
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int maxPacketLength() {
|
||||
return maxPacketLength;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user