Skip to content
Open
Prev Previous commit
Next Next commit
feat: replace dummy with live tracing in worker
  • Loading branch information
tstelzer committed Jul 8, 2022
commit fcb01033feada3f69cea1ff9ec7de4c223b3b204
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { provideDummyTracing } from '@contentlayer/utils'
import { provideDummyTracing, provideJaegerTracing } from '@contentlayer/utils'
import { pipe, provideConsole, T } from '@contentlayer/utils/effect'
import type { _A, _E } from '@effect-ts/core/Utils'
import * as os from 'node:os'
Expand Down Expand Up @@ -60,7 +60,7 @@ export function makeCacheItemFromFilePath(payload: string): Promise<string> {
(value) => ({ _tag: 'right', value } as const),
),
provideConsole,
provideDummyTracing,
provideJaegerTracing('worker'),
T.runPromise,
(p) => p.then((value) => JSON.stringify(value, null, 2)),
)
Expand Down