From a85881ab638486e85cb812fceb36b8082d922cd6 Mon Sep 17 00:00:00 2001 From: Ankcorn Date: Wed, 3 Apr 2024 10:00:29 +0100 Subject: [PATCH] fix docs --- TRPC.md | 2 +- examples/serverless-otel/packages/functions/src/lambda.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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');