OptionalenabledWhether to enable the plugin.
OptionalhooksHooks to run before spans are finished.
Optionalquery?: (span?: Span, params?: TransportRequestParams) => anyHook to execute just before the query span finishes.
OptionalmeasuredWhether to measure the span. Can also be set to a key-value pair with span names as keys and booleans as values for more granular control.
OptionalserviceThe service name to be used for this plugin.
This plugin automatically instruments the opensearch module.