{"library":"opentelemetry-instrumentation-fetch-node","type":"library","category":null,"description":"This package, `@gasbuddy/opentelemetry-instrumentation-fetch-node`, provides automatic OpenTelemetry instrumentation specifically for Node.js 18+ native `fetch` API calls. Unlike generic HTTP instrumentation, it is designed to work with the `undici`-based native `fetch` implementation in newer Node.js versions. The current stable version is 1.2.3, released in July 2024, with a consistent release cadence addressing bug fixes and features. A key differentiator is its use of Node.js's diagnostics channel for tracing and a unique workaround involving a 'phony fetch' to an unparseable URL, ensuring the instrumentation is active even with Node's lazy-loading behavior of the `fetch` API. It allows for advanced customization of spans and headers through an `onRequest` event. This is crucial for applications leveraging native `fetch` in modern Node environments that need comprehensive observability.","language":"javascript","status":"active","version":"1.2.3","tags":["javascript","typescript","gasbuddy","opentelemetry","fetch","undici"],"install":[{"cmd":"npm install opentelemetry-instrumentation-fetch-node","imports":["import { NodeFetchInstrumentation } from '@gasbuddy/opentelemetry-instrumentation-fetch-node';","import type { NodeFetchInstrumentationConfig } from '@gasbuddy/opentelemetry-instrumentation-fetch-node';","import { registerInstrumentations } from '@opentelemetry/instrumentation';"]},{"cmd":"yarn add opentelemetry-instrumentation-fetch-node","imports":[]},{"cmd":"pnpm add opentelemetry-instrumentation-fetch-node","imports":[]}],"homepage":null,"github":"https://github.com/gas-buddy/opentelemetry-instrumentation-fetch-node","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/opentelemetry-instrumentation-fetch-node","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/opentelemetry-instrumentation-fetch-node/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}