Instrumentation wrapper for the axios HTTP client, enabling distributed tracing via Zipkin. This package is a maintained fork of zipkin-instrumentation-axios (which is no longer maintained). Current version 0.2.4 stable. Requires zipkin >= 0.15.0 as a peer dependency. Primary differentiator: provides a simple wrapAxios function returning a traced axios instance, compatible with browser and Node.js environments.
npm install zipkin-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to wrap an axios instance with Zipkin tracing and make a traced GET request.
Use axios.create() to get a new instance before passing to wrapAxios.
Add a .d.ts file: declare module 'zipkin-axios' { function wrapAxios(axios: any, options: any): any; export default wrapAxios; }Migrate to zipkin-axios by replacing imports.
Change to `import wrapAxios from 'zipkin-axios'` or use `const wrapAxios = require('zipkin-axios')` in CJS.Run `npm install --save zipkin-axios zipkin` to install both.