-
public interface PluginContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPluginContext.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitaddOnSpanStartCallback(Integer priority, OnSpanStartCallback callback)Add a OnSpanStartCallback to the list of callbacks that will be called when a span is started. UnitaddOnSpanStartCallback(OnSpanStartCallback callback)Add a OnSpanStartCallback to the list of callbacks that will be called when a span is started. abstract UnitaddOnSpanEndCallback(Integer priority, OnSpanEndCallback callback)Add a OnSpanEndCallback to the list of callbacks that will be called when a span is ended. UnitaddOnSpanEndCallback(OnSpanEndCallback callback)Add a OnSpanEndCallback to the list of callbacks that will be called when a span is ended. abstract UnitaddSpanControlProvider(Integer priority, SpanControlProvider<?> provider)Add a SpanControlProvider to the list of providers that can be queried via BugsnagPerformance.getSpanControls. UnitaddSpanControlProvider(SpanControlProvider<?> provider)Add a SpanControlProvider to the list of providers that can be queried via BugsnagPerformance.getSpanControls. abstract PerformanceConfigurationgetConfiguration()The user provided configuration for the performance monitoring library. -
-
Method Detail
-
addOnSpanStartCallback
abstract Unit addOnSpanStartCallback(Integer priority, OnSpanStartCallback callback)
Add a OnSpanStartCallback to the list of callbacks that will be called when a span is started. The priority of the callback determines the order in which it will be called, with lower numbers being called first. The default priority is NORM_PRIORITY (which is also the priority of the OnSpanStartCallback added in PerformanceConfiguration.addOnSpanStartCallback).
-
addOnSpanStartCallback
Unit addOnSpanStartCallback(OnSpanStartCallback callback)
Add a OnSpanStartCallback to the list of callbacks that will be called when a span is started. This is a convenience method that is the same as calling addOnSpanStartCallback with the default priority of NORM_PRIORITY.
-
addOnSpanEndCallback
abstract Unit addOnSpanEndCallback(Integer priority, OnSpanEndCallback callback)
Add a OnSpanEndCallback to the list of callbacks that will be called when a span is ended. The priority of the callback determines the order in which it will be called, with lower numbers being called first. The default priority is NORM_PRIORITY (which is also the priority of the OnSpanEndCallback added in PerformanceConfiguration.addOnSpanEndCallback).
-
addOnSpanEndCallback
Unit addOnSpanEndCallback(OnSpanEndCallback callback)
Add a OnSpanEndCallback to the list of callbacks that will be called when a span is ended. This is a convenience method that is the same as calling addOnSpanEndCallback with the default priority of NORM_PRIORITY.
-
addSpanControlProvider
abstract Unit addSpanControlProvider(Integer priority, SpanControlProvider<?> provider)
Add a SpanControlProvider to the list of providers that can be queried via BugsnagPerformance.getSpanControls. The priority of the provider determines the order in which it will be queried, with higher priorities being queried first.
-
addSpanControlProvider
Unit addSpanControlProvider(SpanControlProvider<?> provider)
Add a SpanControlProvider to the list of providers that can be queried via BugsnagPerformance.getSpanControls. This is a convenience method that is the same as calling addSpanControlProvider with the default priority of NORM_PRIORITY.
-
getConfiguration
abstract PerformanceConfiguration getConfiguration()
The user provided configuration for the performance monitoring library. Changes made by the plugin to this configuration may be ignored by the library, so plugins should not modify this configuration directly (instead making any changes via the PluginContext).
-
-
-
-