8 months ago (02-19)  Technology |   First to comment  24 
post score 0 times, average 0.0

Zipkin is a distributed tracking system developed and open source by Twitter, while Axios is a common Javascript HTTP client.Because ZIPKIN-JS officials did not provide axios suitability, and the same type of library Zipkin-jinstrumentation-axios has destroyed the original functionality of Axios, for which the very guest made this library for integration Zipkin and Axios, All of the original method properties of Axios can be supported, and their usage is exactly the same as Axios.

Zipkin-js-instrumentation-axios

Adds Zipkin Tracing for the Axios JS HTTP client library. It supports all features of Axios.

Installation

Usage

You need to I w rapAxiosfucntion to wrap the native A xiosinstance, and the A xiosinstance's type/functions/attributes a Re not affected. As a result, you can-zi pkinAxiosthe same as A xios for example:


 

Interceptors of Axios also supported

You can intercept requests or responses before and is handled by then or catch.


 

The test cases all passed

  
 
关注我的微信

Follow my WeChat to get an article update

If you find this article useful to you, you can click on the "sponsor author" below to reward the author!

Reprint indicating the original source:Baiyuan's Blog>>https://wangbaiyuan.cn/en/zipkin-js-instrumentation-axios-2.html

Post comment

Style

No Comment

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW