diff --git a/TRPC.md b/TRPC.md index e78e721..25e9388 100644 --- a/TRPC.md +++ b/TRPC.md @@ -16,7 +16,7 @@ Add the Middleware to the procedures you want to trace ```typescript // trpc.ts -import { trpcTracingMiddleware } from "@baselime/node-opentelemetry/trpc"; +import { tracing } from "@baselime/node-opentelemetry/trpc"; const t = initTRPC.context().create({ ... diff --git a/examples/serverless-otel/packages/functions/src/lambda.ts b/examples/serverless-otel/packages/functions/src/lambda.ts index 07a86dd..6168a5e 100644 --- a/examples/serverless-otel/packages/functions/src/lambda.ts +++ b/examples/serverless-otel/packages/functions/src/lambda.ts @@ -13,6 +13,7 @@ export const handler = withOpenTelemetry(async () => { const span = tracer.startSpan('example'); + await s3.getObject({ Bucket: 'example', Key: 'example' }); await new Promise((resolve) => setTimeout(resolve, 1000)); if(Math.random() > 0.5) { throw new Error('Random error');