public enum TelemetryConfigurationFactory extends java.lang.Enum<TelemetryConfigurationFactory>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILTIN_PROCESSORS_SCANNING_ENABLED_PROPERTY
This enables scanning for classes annotated with
BuiltInProcessor . |
static java.lang.String |
CONNECTION_STRING_ENV_VAR_NAME |
static java.lang.String |
PERFORMANCE_MODULES_SCANNING_ENABLED_PROPERTY
This enables scanning for classes annotated with
PerformanceModule . |
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultPerfModuleClassName(java.lang.String name) |
void |
initialize(TelemetryConfiguration configuration)
Currently we do the following:
Set Instrumentation Key
Set Developer Mode (default false)
Set Channel (default
InProcessTelemetryChannel )
Set Tracking Disabled Mode (default false)
Set Context Initializers where they should be written with full package name
Set Telemetry Initializers where they should be written with full package name |
static TelemetryConfigurationFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TelemetryConfigurationFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TelemetryConfigurationFactory INSTANCE
public static final java.lang.String BUILTIN_PROCESSORS_SCANNING_ENABLED_PROPERTY
BuiltInProcessor
.
If set "true" (case insensitive) scanning will be enabled. Otherwise (by default), it will be disabled.public static final java.lang.String PERFORMANCE_MODULES_SCANNING_ENABLED_PROPERTY
PerformanceModule
.
If set "true" (case insensitive) scanning will be enabled. Otherwise (by default), it will be disabled.public static final java.lang.String CONNECTION_STRING_ENV_VAR_NAME
public static TelemetryConfigurationFactory[] values()
for (TelemetryConfigurationFactory c : TelemetryConfigurationFactory.values()) System.out.println(c);
public static TelemetryConfigurationFactory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void addDefaultPerfModuleClassName(java.lang.String name)
public final void initialize(TelemetryConfiguration configuration)
InProcessTelemetryChannel
)
Set Tracking Disabled Mode (default false)
Set Context Initializers where they should be written with full package name
Set Telemetry Initializers where they should be written with full package nameconfiguration
- The configuration that will be populated