(options: NodeOptions | undefined = {})
| 8 | * Initializes the NestJS SDK |
| 9 | */ |
| 10 | export function init(options: NodeOptions | undefined = {}): NodeClient | undefined { |
| 11 | const opts: NodeOptions = { |
| 12 | defaultIntegrations: getDefaultIntegrations(options), |
| 13 | ...options, |
| 14 | }; |
| 15 | |
| 16 | applySdkMetadata(opts, 'nestjs', ['nestjs', 'node']); |
| 17 | |
| 18 | return nodeInit(opts); |
| 19 | } |
| 20 | |
| 21 | /** Get the default integrations for the NestJS SDK. */ |
| 22 | export function getDefaultIntegrations(options: NodeOptions): Integration[] | undefined { |