Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 2.29 KB

CrawleeOneTelemetry.md

File metadata and controls

76 lines (46 loc) · 2.29 KB

crawlee-one / Exports / CrawleeOneTelemetry

Interface: CrawleeOneTelemetry<T, THandlerOptions>

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.

Type parameters

Name Type
T extends CrawleeOneCtx
THandlerOptions extends CrawleeOneErrorHandlerOptions<any> = CrawleeOneErrorHandlerOptions

Table of contents

Properties

Properties

onSendErrorToTelemetry

onSendErrorToTelemetry: (error: Error, report: ExtractErrorHandlerOptionsReport<THandlerOptions>, options: Omit<THandlerOptions, "onErrorCapture">, ctx: T["context"]) => MaybePromise<void>

Type declaration

▸ (error, report, options, ctx): MaybePromise<void>

Parameters
Name Type
error Error
report ExtractErrorHandlerOptionsReport<THandlerOptions>
options Omit<THandlerOptions, "onErrorCapture">
ctx T["context"]
Returns

MaybePromise<void>

Defined in

src/lib/telemetry/types.ts:22


setup

setup: (actor: CrawleeOneActorInst<T>) => MaybePromise<void>

Type declaration

▸ (actor): MaybePromise<void>

Parameters
Name Type
actor CrawleeOneActorInst<T>
Returns

MaybePromise<void>

Defined in

src/lib/telemetry/types.ts:21