This plugin automatically instruments the http module.
By default any option set at the root will apply to both clients and
servers. To configure only one or the other, use the
List of URLs that should be instrumented.
List of URLs that should not be instrumented. Takes precedence over allowlist if a URL matches an entry in both.
Configuration for HTTP clients.
Enable injection of tracing headers into requests signed with AWS IAM headers. Disable this if you get AWS signature errors (HTTP 403).
Whether to enable the plugin.
An array of headers to include in the span metadata.
Hooks to run before spans are finished.
Whether 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.
Whether to enable instrumentation of
List of urls to which propagation headers should not be injected
Configuration for HTTP servers.
The service name to be used for this plugin.
Use the remote endpoint host as the service name instead of the default.
Callback function to determine if there was an error. It should take a
status code as its only parameter and return
true for success or
Generated using TypeDoc