Skip to content

Commit

Permalink
fix(type): temp ignore type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored and mergify[bot] committed May 1, 2022
1 parent 3eb1705 commit 6b587b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions api-node/src/reliability/utils/initTracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,21 @@ const initTracer = (): void => {

registerInstrumentations({
instrumentations: [
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
new DnsInstrumentation(),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
new ExpressInstrumentation(),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
new GraphQLInstrumentation(),
new HttpInstrumentation(),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
new IORedisInstrumentation(),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
new PinoInstrumentation(),
],
});
Expand Down
7 changes: 6 additions & 1 deletion web/src/shared/utils/initTracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ const initTracer = (): void => {
tracerProvider.register();

registerInstrumentations({
instrumentations: [new DocumentLoadInstrumentation(), new XMLHttpRequestInstrumentation()],
instrumentations: [
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
new DocumentLoadInstrumentation(),
new XMLHttpRequestInstrumentation(),
],
});
};

Expand Down

0 comments on commit 6b587b3

Please sign in to comment.