Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
silvicir committed Oct 28, 2024
1 parent 3029186 commit 0b19aeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/io-wallet-user-func/src/infra/azure/appinsights/start.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import * as ai from "applicationinsights";
import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici";
import { registerInstrumentations } from "@opentelemetry/instrumentation";
import { metrics, trace } from "@opentelemetry/api";
import { registerInstrumentations } from "@opentelemetry/instrumentation";
import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici";
import * as ai from "applicationinsights";

ai.setup(process.env["AppInsightsConnectionString"])
.setUseDiskRetryCaching(true)
.start();

registerInstrumentations({
tracerProvider: trace.getTracerProvider(),
meterProvider: metrics.getMeterProvider(),
instrumentations: [new UndiciInstrumentation()],
meterProvider: metrics.getMeterProvider(),
tracerProvider: trace.getTracerProvider(),
});

export default ai;

0 comments on commit 0b19aeb

Please sign in to comment.