Add environment tag to datadog metric reporting

This commit is contained in:
Ehren Kret
2020-07-30 13:59:07 -05:00
committed by Jon Chambers
parent dee040318a
commit 7cb24dd96d
2 changed files with 19 additions and 2 deletions

View File

@@ -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;
}
}