Class NewRelicExporters.Configuration
- java.lang.Object
-
- com.newrelic.telemetry.opentelemetry.export.NewRelicExporters.Configuration
-
- Enclosing class:
- NewRelicExporters
public static class NewRelicExporters.Configuration extends java.lang.Object
Basic Configuration options for the New Relic Exporters.
-
-
Constructor Summary
Constructors Constructor Description Configuration(java.lang.String apiKey, java.lang.String serviceName)
Create a new configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewRelicExporters.Configuration
collectionIntervalSeconds(int interval)
Set the collection interval, in seconds, for both metrics and spans.NewRelicExporters.Configuration
enableAuditLogging()
Turn on audit logging for the exporters.
-
-
-
Method Detail
-
enableAuditLogging
public NewRelicExporters.Configuration enableAuditLogging()
Turn on audit logging for the exporters. Please note that this will expose all your telemetry data to your logging system. Requires the slf4j "com.newrelic.telemetry" logger to be enabled at DEBUG level. Defaults to being off.
-
collectionIntervalSeconds
public NewRelicExporters.Configuration collectionIntervalSeconds(int interval)
Set the collection interval, in seconds, for both metrics and spans. Defaults to 5 seconds.
-
-