Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Apr 3, 2024
1 parent b3331d5 commit a85881a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TRPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof createTRPCContext>().create({
...
Expand Down
1 change: 1 addition & 0 deletions examples/serverless-otel/packages/functions/src/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a85881a

Please sign in to comment.