Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | /**
* Auto-instrumentation entry point. Use with node --import to subscribe to
* all @ydbjs diagnostics channels without code changes:
*
* node --import @opentelemetry/sdk-node/register \
* --import @ydbjs/telemetry/register \
* your-app.js
*
* The OTel SDK must be initialised before this file is imported so that
* the global tracer provider is already set up when register() runs.
*/
import { register } from './index.js'
register()
|