opentelemetry.ext.http_requests package

Module contents

The opentelemetry-ext-requests package allows tracing HTTP requests made by the popular requests library.

opentelemetry.ext.http_requests.enable(tracer_source)[source]

Enables tracing of all requests calls that go through requests.session.Session.request (this includes requests.get, etc.).

opentelemetry.ext.http_requests.disable()[source]

Disables instrumentation of requests through this module.

Note that this only works if no other module also patches requests.