Skip to content

Commit 3e3f3cf

Browse files
committed
docs: remove references to pino-lambda
1 parent 95dd464 commit 3e3f3cf

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/lambda-batch-processor/README.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -75,32 +75,3 @@ which is modelled after [pino](https://github.com/pinojs/pino)'s function signat
7575

7676
> [!NOTE]
7777
> The provided logger should support serialising [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) objects.
78-
79-
If using pino, it might be worth adding [pino-lambda](https://github.com/formidablelabs/pino-lambda),
80-
to preserve Lambda's standard log message format.
81-
82-
```ts
83-
import { SQSBatchProcessor } from '@driimus/lambda-batch-processor';
84-
import pino from 'pino';
85-
import { lambdaRequestTracker, pinoLambdaDestination } from 'pino-lambda';
86-
87-
const destination = pinoLambdaDestination();
88-
const withRequest = lambdaRequestTracker();
89-
90-
const logger = pino({}, destination);
91-
92-
const processor = new SQSBatchProcessor(
93-
async (record) => {
94-
/** do stuff */
95-
},
96-
{
97-
logger,
98-
},
99-
);
100-
101-
export const handler = async (event, context) => {
102-
withRequest(event, context);
103-
104-
return await processor.process(event, context);
105-
};
106-
```

0 commit comments

Comments
 (0)