OptionalattributesAttributes to be added to the OpenTelemetry Resource.
OptionalbackendSpecifies the URL used for non-OTLP operations. These include accessing client sampling configuration.
OptionalconsoleSpecifies which console methods to record.
The value here will be ignored if disabledConsoleRecording is true.
OptionaldisableSpecifies whether the LaunchDarkly Observability Plugin will record console messages.
OptionaldisableTurn off enhanced attribute reporting for pg instrumentation. See the following for additional details. https://github.com/open-telemetry/opentelemetry-js-contrib/blob/64fcbf3b70e7293e143266838ff94b94cf2c30da/plugins/node/opentelemetry-instrumentation-pg/src/types.ts#L52
OptionalenvironmentSpecifies the environment your application is running in. This is useful to distinguish whether your session was recorded on localhost or in production.
OptionalinstrumentationConfiguration for the OpenTelemetry auto-instrumentations registered by
the plugin, keyed by instrumentation name. This is the same shape that
getNodeAutoInstrumentations() from
@opentelemetry/auto-instrumentations-node accepts, and each entry is
merged over the plugin's defaults for that instrumentation.
Use it to filter spans at the source, for example to drop health checks
or platform probes such as Vercel's GET /_vercel/ping, while keeping
every other inbound request span.
Setting enabled: false disables that instrumentation. Instrumentations
that are disabled by default (such as @opentelemetry/instrumentation-fs)
or by OTEL_NODE_DISABLED_INSTRUMENTATIONS cannot be enabled here, and
options read when a module is patched (such as the http
disableIncomingRequestInstrumentation and
disableOutgoingRequestInstrumentation flags) only take effect for
modules loaded after the plugin is initialized. Request-time options
such as ignoreIncomingRequestHook, ignoreOutgoingRequestHook,
requestHook and responseHook always apply.
OptionalotlpThe endpoint string to send OTLP HTTP data to.
OptionalserializeSet to try to serialize console object arguments into the message body.
OptionalserviceThis app's service name.
OptionalserviceThis app's version ideally set to the latest deployed git SHA.
Options for configuring the LaunchDarkly Observability Plugin.
Additionally the following environment variables can be used to configure the plugin.
LAUNCHDARKLY_OTEL_NODE_ENABLE_FILESYSTEM_INSTRUMENTATION - Enable filesystem instrumentation. Defaults to false. LAUNCHDARKLY_OTEL_NODE_ENABLE_OUTGOING_HTTP_INSTRUMENTATION - Enable outgoing HTTP instrumentation. Defaults to true. This only affects the outgoing HTTP requests instrumented by
@opentelemetry/instrumentation-http. It does not affect fetch for example.OTEL_NODE_ENABLED_INSTRUMENTATIONS, and OTEL_NODE_DISABLED_INSTRUMENTATIONS can be used per the OpenTelemetry documentation, but with a few exceptions. https://opentelemetry.io/docs/zero-code/js/configuration/
The
@opentelemetry/instrumentation-fsinstrumentation will only be enabled if LAUNCHDARKLY_OTEL_NODE_ENABLE_FILESYSTEM_INSTRUMENTATION is true, and will be unaffected by the OTEL_NODE_ENABLED_INSTRUMENTATIONS and OTEL_NODE_DISABLED_INSTRUMENTATIONS environment variables.