OptionalallowlistList of URLs/paths that should be instrumented.
Note that when used for an http client the entry represents a full
outbound URL (https://example.org/api/foo) but when used as a
server the entry represents an inbound path (/api/foo).
OptionalblocklistList of URLs/paths that should not be instrumented. Takes precedence over allowlist if a URL matches an entry in both.
Note that when used for an http client the entry represents a full
outbound URL (https://example.org/api/foo) but when used as a
server the entry represents an inbound path (/api/foo).
OptionalenabledWhether to enable the plugin.
OptionalenableEnable injection of tracing headers into requests signed with AWS IAM headers. Disable this if you get AWS signature errors (HTTP 403).
OptionalfilterCustom filter function used to decide whether a URL/path is allowed. When provided, this takes precedence over allowlist/blocklist configuration. If not provided, allowlist/blocklist logic will be used instead.
The URL or path to filter
true to instrument the request, false to skip it
OptionalheadersAn array of headers to include in the span metadata.
OptionalhooksHooks to run before spans are finished.
Optionalrequest?: (Hook to execute just before the request 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.
OptionalmiddlewareWhether to enable instrumentation of
OptionalqueryWhether (or how) to obfuscate querystring values in http.url.
true: obfuscate all valuesfalse: disable obfuscationstring: regex string used to obfuscate matching values (empty string disables)RegExp: regex used to obfuscate matching valuesOptionalresourceWhether to enable resource renaming when the framework route is unavailable.
OptionalserviceThe service name to be used for this plugin.
OptionalvalidateCallback function to determine if there was an error. It should take a
status code as its only parameter and return true for success or false
for errors.
This plugin automatically instruments the connect module.