autoInstrument
Traces common outbound calls with no other code. Call it once, after init. Calls to your monitoring address are never traced, so reporting can't trace itself.
Parameters
fetchbooleanNode: every call through the global fetch becomes a span.
dbbooleanNode: pg, mysql2 and ioredis calls become spans, for the ones installed.
httpbooleanPython: requests and urllib. Ruby: Net::HTTP.
Example
Node
import { init, autoInstrument } from "@octri/node";
init({ /* ... */ });
autoInstrument();In each language
| Language | Call |
|---|---|
| Node | autoInstrument() |
| Python | octri.auto_instrument() |
| Go | Not available |
| Ruby | Octri.auto_instrument |
| Java | Not available |
| Kotlin | Not available |
| PHP | Not available |
| Rust | Not available |
| Swift | Not available |
| Dart | Not available |
For your own clients and modules, use instrument.
Related
- Other functions:
init,captureError,captureEvent,captureSpan,traceFromHeader,addScrubFields,setBeforeSend,startSpan,withSpan,instrument. - Backend SDKs: installing a runtime and its framework integrations.