Skip to main content

GetSdkConfiguration

Creates a configuration object for the OpenTelemetry Node SDK. This is used to set up a custom preload script which must be run before the main Vendure server is loaded by means of the Node.js --require flag.

Example

Ts

This would them be run as:

Bash
Signature

Parameters

options

Options for configuring the OpenTelemetry Node SDK.

Signature

logToConsole

propertyboolean
Default:false

When set to true, the SDK will log spans to the console instead of sending them to an exporter. This should just be used for debugging purposes.

config

propertyPartial<NodeSDKConfiguration>

The configuration object for the OpenTelemetry Node SDK.

Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page