@merkl/api 0.20.80 → 0.20.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,8 +27,6 @@ import bigintToString from "@/utils/bigintToString";
27
27
  import { opentelemetry } from "@elysiajs/opentelemetry";
28
28
  import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
29
29
  import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
30
- import { PgInstrumentation } from "@opentelemetry/instrumentation-pg";
31
- import { RedisInstrumentation } from "@opentelemetry/instrumentation-redis";
32
30
  import { AlwaysOffSampler, BatchSpanProcessor } from "@opentelemetry/sdk-trace-node";
33
31
  import { PrismaInstrumentation } from "@prisma/instrumentation";
34
32
  import Elysia from "elysia";
@@ -37,7 +35,7 @@ import { ReferralController } from "./referral/referral.controller";
37
35
  export const v4 = new Elysia({ tags: ["v4"], prefix: "/v4" })
38
36
  // ─── OpenTelemetry ───────────────────────────────────────────────────
39
37
  .use(opentelemetry({
40
- sampler: process.env.TRACE === "true" ? new TailSampler(0.1) : new AlwaysOffSampler(),
38
+ sampler: process.env.TRACE === "true" ? new TailSampler(0.01) : new AlwaysOffSampler(),
41
39
  spanProcessors: [
42
40
  new BatchSpanProcessor(new OTLPTraceExporter({
43
41
  url: process.env.OTEL_COLLECTOR,
@@ -46,12 +44,8 @@ export const v4 = new Elysia({ tags: ["v4"], prefix: "/v4" })
46
44
  },
47
45
  })),
48
46
  ],
49
- instrumentations: [
50
- new PgInstrumentation(),
51
- new RedisInstrumentation(),
52
- new PrismaInstrumentation(),
53
- getNodeAutoInstrumentations(),
54
- ],
47
+ instrumentations: [getNodeAutoInstrumentations(), new PrismaInstrumentation()],
48
+ serviceName: "merkl-api",
55
49
  }))
56
50
  // ─── Error Handling ──────────────────────────────────────────────────
57
51
  .use(ErrorHandler)
@@ -185,7 +185,6 @@ export class UniswapService {
185
185
  fetchedAtBlock: pool.fetchedAtBlock,
186
186
  lpFee: pool.lpFee,
187
187
  poolId: id,
188
- poolKey: pool.poolKey,
189
188
  symbolCurrency0,
190
189
  symbolCurrency1,
191
190
  tickSpacing: pool.tickSpacing,