-
public final class PerformanceConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPerformanceConfiguration.Loader
-
Field Summary
Fields Modifier and Type Field Description private StringapiKeyprivate Stringendpointprivate BooleanautoInstrumentAppStartsprivate AutoInstrumentautoInstrumentActivitiesprivate EnabledMetricsenabledMetricsprivate BooleanautoInstrumentRenderingprivate StringreleaseStageprivate Set<String>enabledReleaseStagesprivate LongversionCodeprivate StringappVersionprivate StringserviceNameprivate Loggerloggerprivate DoublesamplingProbabilityprivate Collection<Class<out Activity>>doNotEndAppStartprivate Collection<Class<?>>doNotAutoInstrumentprivate NetworkRequestInstrumentationCallbacknetworkRequestCallbackprivate Collection<Pattern>tracePropagationUrlsprivate IntegerattributeStringValueLimitprivate IntegerattributeArrayLengthLimitprivate IntegerattributeCountLimitprivate final Contextcontext
-
Constructor Summary
Constructors Constructor Description PerformanceConfiguration(Context context, String apiKey)
-
Method Summary
Modifier and Type Method Description final StringgetApiKey()final UnitsetApiKey(String apiKey)final StringgetEndpoint()final UnitsetEndpoint(String endpoint)final BooleangetAutoInstrumentAppStarts()final UnitsetAutoInstrumentAppStarts(Boolean autoInstrumentAppStarts)final AutoInstrumentgetAutoInstrumentActivities()final UnitsetAutoInstrumentActivities(AutoInstrument autoInstrumentActivities)final EnabledMetricsgetEnabledMetrics()final UnitsetEnabledMetrics(EnabledMetrics enabledMetrics)final BooleangetAutoInstrumentRendering()final UnitsetAutoInstrumentRendering(@Deprecated(message = use enabledMetrics.rendering, replaceWith = @ReplaceWith(imports = {}, expression = enabledMetrics.rendering)) Boolean autoInstrumentRendering)final StringgetReleaseStage()final UnitsetReleaseStage(String releaseStage)final Set<String>getEnabledReleaseStages()final UnitsetEnabledReleaseStages(Set<String> enabledReleaseStages)final LonggetVersionCode()final UnitsetVersionCode(Long versionCode)final StringgetAppVersion()final UnitsetAppVersion(String appVersion)final StringgetServiceName()final UnitsetServiceName(String serviceName)final LoggergetLogger()final UnitsetLogger(Logger logger)final DoublegetSamplingProbability()final UnitsetSamplingProbability(Double samplingProbability)final Collection<Class<out Activity>>getDoNotEndAppStart()Activity classes that are considered part of the AppStart and therefore will not end the AppStart when the associated ViewLoad is ended. final UnitsetDoNotEndAppStart(Collection<Class<out Activity>> doNotEndAppStart)Activity classes that are considered part of the AppStart and therefore will not end the AppStart when the associated ViewLoad is ended. final Collection<Class<?>>getDoNotAutoInstrument()A list of classes to not automatically instrument. final UnitsetDoNotAutoInstrument(Collection<Class<?>> doNotAutoInstrument)A list of classes to not automatically instrument. final NetworkRequestInstrumentationCallbackgetNetworkRequestCallback()Callback to be invoked on every network request that would generate a span. final UnitsetNetworkRequestCallback(NetworkRequestInstrumentationCallback networkRequestCallback)Callback to be invoked on every network request that would generate a span. final Collection<Pattern>getTracePropagationUrls()final UnitsetTracePropagationUrls(Collection<Pattern> tracePropagationUrls)final IntegergetAttributeStringValueLimit()final UnitsetAttributeStringValueLimit(Integer attributeStringValueLimit)final IntegergetAttributeArrayLengthLimit()final UnitsetAttributeArrayLengthLimit(Integer attributeArrayLengthLimit)final IntegergetAttributeCountLimit()final UnitsetAttributeCountLimit(Integer attributeCountLimit)final ContextgetContext()final UnitaddPlugin(Plugin plugin)final UnitremovePlugin(Plugin plugin)final UnitaddOnSpanStartCallback(OnSpanStartCallback onSpanStartCallback)Add an OnSpanStartCallbackto be called when a span is started.final UnitremoveOnSpanStartCallback(OnSpanStartCallback onSpanStartCallback)Remove an OnSpanStartCallbackthat was previously added.final UnitaddOnSpanEndCallback(OnSpanEndCallback onSpanEndCallback)Add an OnSpanEndCallbackto be called when a span is ended.final UnitremoveOnSpanEndCallback(OnSpanEndCallback onSpanEndCallback)Remove an OnSpanEndCallbackthat was previously added.StringtoString()-
-
Method Detail
-
getEndpoint
final String getEndpoint()
-
setEndpoint
final Unit setEndpoint(String endpoint)
-
getAutoInstrumentAppStarts
final Boolean getAutoInstrumentAppStarts()
-
setAutoInstrumentAppStarts
final Unit setAutoInstrumentAppStarts(Boolean autoInstrumentAppStarts)
-
getAutoInstrumentActivities
final AutoInstrument getAutoInstrumentActivities()
-
setAutoInstrumentActivities
final Unit setAutoInstrumentActivities(AutoInstrument autoInstrumentActivities)
-
getEnabledMetrics
final EnabledMetrics getEnabledMetrics()
-
setEnabledMetrics
final Unit setEnabledMetrics(EnabledMetrics enabledMetrics)
-
getAutoInstrumentRendering
final Boolean getAutoInstrumentRendering()
-
setAutoInstrumentRendering
final Unit setAutoInstrumentRendering(@Deprecated(message = use enabledMetrics.rendering, replaceWith = @ReplaceWith(imports = {}, expression = enabledMetrics.rendering)) Boolean autoInstrumentRendering)
-
getReleaseStage
final String getReleaseStage()
-
setReleaseStage
final Unit setReleaseStage(String releaseStage)
-
getEnabledReleaseStages
final Set<String> getEnabledReleaseStages()
-
setEnabledReleaseStages
final Unit setEnabledReleaseStages(Set<String> enabledReleaseStages)
-
getVersionCode
final Long getVersionCode()
-
setVersionCode
final Unit setVersionCode(Long versionCode)
-
getAppVersion
final String getAppVersion()
-
setAppVersion
final Unit setAppVersion(String appVersion)
-
getServiceName
final String getServiceName()
-
setServiceName
final Unit setServiceName(String serviceName)
-
getSamplingProbability
final Double getSamplingProbability()
-
setSamplingProbability
final Unit setSamplingProbability(Double samplingProbability)
-
getDoNotEndAppStart
final Collection<Class<out Activity>> getDoNotEndAppStart()
Activity classes that are considered part of the AppStart and therefore will not end the AppStart when the associated ViewLoad is ended.
-
setDoNotEndAppStart
final Unit setDoNotEndAppStart(Collection<Class<out Activity>> doNotEndAppStart)
Activity classes that are considered part of the AppStart and therefore will not end the AppStart when the associated ViewLoad is ended.
-
getDoNotAutoInstrument
final Collection<Class<?>> getDoNotAutoInstrument()
A list of classes to not automatically instrument. This will only match the classes exactly (sub-classes must be listed separately).
-
setDoNotAutoInstrument
final Unit setDoNotAutoInstrument(Collection<Class<?>> doNotAutoInstrument)
A list of classes to not automatically instrument. This will only match the classes exactly (sub-classes must be listed separately).
-
getNetworkRequestCallback
final NetworkRequestInstrumentationCallback getNetworkRequestCallback()
Callback to be invoked on every network request that would generate a span. Use this to filter what URLs will generate spans and how.
-
setNetworkRequestCallback
final Unit setNetworkRequestCallback(NetworkRequestInstrumentationCallback networkRequestCallback)
Callback to be invoked on every network request that would generate a span. Use this to filter what URLs will generate spans and how.
-
getTracePropagationUrls
final Collection<Pattern> getTracePropagationUrls()
-
setTracePropagationUrls
final Unit setTracePropagationUrls(Collection<Pattern> tracePropagationUrls)
-
getAttributeStringValueLimit
final Integer getAttributeStringValueLimit()
-
setAttributeStringValueLimit
final Unit setAttributeStringValueLimit(Integer attributeStringValueLimit)
-
getAttributeArrayLengthLimit
final Integer getAttributeArrayLengthLimit()
-
setAttributeArrayLengthLimit
final Unit setAttributeArrayLengthLimit(Integer attributeArrayLengthLimit)
-
getAttributeCountLimit
final Integer getAttributeCountLimit()
-
setAttributeCountLimit
final Unit setAttributeCountLimit(Integer attributeCountLimit)
-
getContext
final Context getContext()
-
removePlugin
final Unit removePlugin(Plugin plugin)
-
addOnSpanStartCallback
final Unit addOnSpanStartCallback(OnSpanStartCallback onSpanStartCallback)
Add an
OnSpanStartCallbackto be called when a span is started. This callback can be used to pre-configure the span before it is used (such as setting attributes).
-
removeOnSpanStartCallback
final Unit removeOnSpanStartCallback(OnSpanStartCallback onSpanStartCallback)
Remove an
OnSpanStartCallbackthat was previously added. If the callback was not added, this will do nothing.
-
addOnSpanEndCallback
final Unit addOnSpanEndCallback(OnSpanEndCallback onSpanEndCallback)
Add an
OnSpanEndCallbackto be called when a span is ended. These callbacks can modify the attributes of a span or cause it to be discarded between the time Span.end is called and when the span is enqueued for delivery.
-
removeOnSpanEndCallback
final Unit removeOnSpanEndCallback(OnSpanEndCallback onSpanEndCallback)
Remove an
OnSpanEndCallbackthat was previously added. If the callback was not added, this will do nothing.
-
-
-
-