Skip to main content

CrawlerInstrumentor

Helper class for instrumenting crawlers with OpenTelemetry.

Index

Methods

__init__

  • __init__(*, instrument_classes, request_handling_instrumentation): None
  • Initialize the instrumentor.


    Parameters

    • optionalkeyword-onlyinstrument_classes: list[type] | None = None

      List of classes to be instrumented - all their public methods and coroutines will be wrapped by generic instrumentation wrapper that will create spans for them.

    • optionalkeyword-onlyrequest_handling_instrumentation: bool = True

      Handpicked most interesting methods to instrument in the request handling pipeline.

    Returns None

instrumentation_dependencies

  • instrumentation_dependencies(): list[str]
  • Return a list of python packages with versions that will be instrumented.


    Returns list[str]

Page Options