Commit 946202bd authored by Phillip Webb's avatar Phillip Webb

Polish 'Support 'New Relic' eventType properties'

See gh-18472
parent e73ae626
...@@ -33,16 +33,16 @@ import org.springframework.boot.context.properties.ConfigurationProperties; ...@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment