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.
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.