crawlee-one / Exports / CrawleeOneTelemetry
Interface for storing and retrieving:
- Scraped data
- Requests (URLs) to scrape
- Cache data
This interface is based on Crawlee/Apify, but defined separately to allow drop-in replacement with other integrations.
Name | Type |
---|---|
T |
extends CrawleeOneCtx |
THandlerOptions |
extends CrawleeOneErrorHandlerOptions <any > = CrawleeOneErrorHandlerOptions |
• onSendErrorToTelemetry: (error
: Error
, report
: ExtractErrorHandlerOptionsReport
<THandlerOptions
>, options
: Omit
<THandlerOptions
, "onErrorCapture"
>, ctx
: T
["context"
]) => MaybePromise
<void
>
▸ (error
, report
, options
, ctx
): MaybePromise
<void
>
Name | Type |
---|---|
error |
Error |
report |
ExtractErrorHandlerOptionsReport <THandlerOptions > |
options |
Omit <THandlerOptions , "onErrorCapture" > |
ctx |
T ["context" ] |
MaybePromise
<void
>
• setup: (actor
: CrawleeOneActorInst
<T
>) => MaybePromise
<void
>
▸ (actor
): MaybePromise
<void
>
Name | Type |
---|---|
actor |
CrawleeOneActorInst <T > |
MaybePromise
<void
>