Polish 'Support 'New Relic' eventType properties'

See gh-18472
pull/18501/head
Phillip Webb 5 years ago
parent e73ae62621
commit 946202bd42

@ -33,16 +33,16 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
public class NewRelicProperties extends StepRegistryProperties { public class NewRelicProperties extends StepRegistryProperties {
/** /**
* When this is {@code false}, the New Relic eventType value will be set to * Whether to send the meter name as the event type instead of using the 'event-type'
* {@link #eventType()}. Otherwise, the meter name will be used. Defaults to * configuration property value. Can be set to 'true' if New Relic guidelines are not
* {@code false}. * being followed or event types consistent with previous Spring Boot releases are
* required.
*/ */
private boolean meterNameEventTypeEnabled; private boolean meterNameEventTypeEnabled;
/** /**
* This configuration property will only be used if * The event type that should be published. This property will be ignored if
* {@link #meterNameEventTypeEnabled()} is {@code false}. Default value is * 'meter-name-event-type-enabled' is set to 'true'.
* {@code SpringBootSample}.
*/ */
private String eventType = "SpringBootSample"; private String eventType = "SpringBootSample";

Loading…
Cancel
Save