Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/vitest/src/utils/traces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@

constructor(options: TracesOptions) {
if (options.enabled) {
const apiInit = import('@opentelemetry/api').then((api) => {
// @ts-expect-error injected global
const id = typeof __vitest_browser__ === 'undefined'

Check failure on line 55 in packages/vitest/src/utils/traces.ts

View workflow job for this annotation

GitHub Actions / Lint: node-latest, ubuntu-latest

Expected indentation of 6 spaces but found 3 tabs

Check failure on line 55 in packages/vitest/src/utils/traces.ts

View workflow job for this annotation

GitHub Actions / Lint: node-latest, ubuntu-latest

Unexpected tab character
? '@opentelemetry/api'
: '/@id/@opentelemetry/api'
const apiInit = import(/* @vite-ignore */ id).then((api) => {
const otel = {
tracer: api.trace.getTracer(options.tracerName || 'vitest'),
context: api.context,
Expand Down
Loading