AbstractThe type of configuration for the plugin
The type of configuration for the plugin
ReadonlyappThe unique app id of the app that is running
ReadonlymodeThe mode the app is running in
ReadonlycwdThe current working directory of the app
ReadonlypackageThe current working directory of the plugin
ReadonlypluginThe current working directory of the service
ReadonlypluginThe name of the plugin This is also the mapped name, or the name defined in the config rather than it's original defined name
Optional ReadonlyregionThe deployment region for resource context
ReadonlyconfigThe config of the plugin
OptionaldebugLogging: Debug level
Trace for tracking the operation
Name of the plugin emitting the log
Log message
Metadata
OptionalinfoLogging: Info level
Trace for tracking the operation
Name of the plugin emitting the log
Log message
Metadata
OptionalwarnLogging: Warn level
Trace for tracking the operation
Name of the plugin emitting the log
Log message
Metadata
OptionalerrorOptionalcreateMetrics: Counter creation
Timestamp of the metric
Name of the plugin emitting the metric
Metric name
Metric description
Help text
Optionallabels: string[]Optional labels
OptionalcreateMetrics: Gauge creation
Timestamp of the metric
Name of the plugin emitting the metric
Metric name
Metric description
Help text
Optionallabels: string[]Optional labels
OptionalcreateMetrics: Histogram creation
Timestamp of the metric
Name of the plugin emitting the metric
Metric name
Metric description
Help text
Optionalboundaries: number[]Histogram boundaries
Optionallabels: string[]Optional labels
OptionalincrementMetrics: Counter increment
Timestamp of the metric
Name of the plugin emitting the metric
Metric name
Increment value
Optionallabels: Record<string, string>Optional label values
OptionalsetMetrics: Gauge set
Timestamp of the metric
Name of the plugin emitting the metric
Metric name
Gauge value
Optionallabels: Record<string, string>Optional label values
OptionalobserveMetrics: Histogram observe
Timestamp of the metric
Name of the plugin emitting the metric
Metric name
Observed value
Optionallabels: Record<string, string>Optional label values
OptionalspanTracing: Span start
Span trace (contains trace ID and new span ID)
Name of the plugin creating the span
Name of the span
Parent span ID (null for root spans)
Optionalattributes: Record<string, string | number | boolean>Span attributes
OptionalspanTracing: Span end
Span trace
Name of the plugin ending the span
Optionalattributes: Record<string, string | number | boolean>Final attributes
OptionalspanTracing: Span error
Span trace
Name of the plugin recording the error
Error object
Optionalattributes: Record<string, string | number | boolean>Error attributes
Optional AbstractdisposeDispose Optional function to be called when the plugin is being disposed
Optional AbstractinitInit Optional function to be called when the plugin is being initialized Can be sync or async
Observable context with logging, metrics, and trace information
v9 BREAKING CHANGE: Now requires Observable instead of DTrace. Observable provides unified access to logging, metrics, and tracing with automatic context propagation.
Optional AbstractrunRun Optional function to be called when the plugin is being run Can be sync or async
Observable context with logging, metrics, and trace information
v9 BREAKING CHANGE: Now requires Observable instead of DTrace. Observable provides unified access to logging, metrics, and tracing with automatic context propagation.
Unified Observable plugin base class for logging, metrics, and tracing
See
API: BSBObservable