mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
17 lines
470 B
JavaScript
17 lines
470 B
JavaScript
// @ts-check
|
|
import { NodeSDK } from '@opentelemetry/sdk-node'
|
|
|
|
const sdk = new NodeSDK({
|
|
serviceName: 'vitest',
|
|
|
|
// NodeSDK uses "@opentelemetry/exporter-trace-otlp-proto" by default.
|
|
// you can override it via `traceExporter` options.
|
|
// traceExporter: ...,
|
|
|
|
// you can configure additional instrumentations such as `@opentelemetry/auto-instrumentations-node`
|
|
// via `instrumentations` options.
|
|
// instrumentations: ...
|
|
})
|
|
sdk.start()
|
|
export default sdk
|