mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 01:01:15 +01:00
Add environment tag to datadog metric reporting
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.whispersystems.textsecuregcm.configuration;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.micrometer.wavefront.WavefrontConfig;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
@@ -18,6 +17,9 @@ public class MicrometerConfiguration {
|
||||
@NotEmpty
|
||||
private String apiKey;
|
||||
|
||||
@JsonProperty
|
||||
private String environment;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -29,4 +31,8 @@ public class MicrometerConfiguration {
|
||||
public String getApiKey() {
|
||||
return apiKey;
|
||||
}
|
||||
|
||||
public String getEnvironment() {
|
||||
return environment;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user