(integration: Integration)
| 153 | |
| 154 | /** Add an integration to the current scope's client. */ |
| 155 | export function addIntegration(integration: Integration): void { |
| 156 | const client = getClient(); |
| 157 | |
| 158 | if (!client) { |
| 159 | DEBUG_BUILD && debug.warn(`Cannot add integration "${integration.name}" because no SDK Client is available.`); |
| 160 | return; |
| 161 | } |
| 162 | |
| 163 | client.addIntegration(integration); |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Define an integration function that can be used to create an integration instance. |
no test coverage detected