{"title":"Zipkin\u306e\u30c8\u30ec\u30fc\u30b9ID\u3092\u751f\u6210\u3057\u3066\u5f15\u304d\u7d99\u3050","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2017%2F10%2F05%2F165927\" title=\"Zipkin\u306e\u30c8\u30ec\u30fc\u30b9ID\u3092\u751f\u6210\u3057\u3066\u5f15\u304d\u7d99\u3050 - GeekFactory\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2017-10-05 16:59:27","categories":["zipkin","php","spring"],"version":"1.0","height":"190","url":"https://int128.hatenablog.com/entry/2017/10/05/165927","author_url":"https://blog.hatena.ne.jp/int128/","description":"Zipkin\u306e\u30c8\u30ec\u30fc\u30b9ID\u3092\u5f15\u304d\u7d99\u3050\u65b9\u6cd5\u306e\u30e1\u30e2\u3067\u3059\u3002 \u30d6\u30e9\u30a6\u30b6 or \u5916\u90e8\u30b5\u30fc\u30d3\u30b9 \u2193 \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\uff08\u30c8\u30ec\u30fc\u30b9ID\u3092\u751f\u6210\uff09 \u2193 \u2193 X-B3-TraceId: xxxx \u2193 \u30d0\u30c3\u30af\u30a8\u30f3\u30c9API\uff08\u30c8\u30ec\u30fc\u30b9ID\u3092\u4e2d\u7d99\uff09 \u2193 \u2193 X-B3-TraceId: xxxx \u2193 \u30d0\u30c3\u30af\u30a8\u30f3\u30c9API \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304cPHP\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c8\u30ec\u30fc\u30b9ID\u3092\u751f\u6210\u3059\u308b\u3068\u7c21\u5358\u3067\u3059\u3002 // Generate 128bit random value $traceId = bin2hex(openssl_random_pseudo_bytes(16)); define('ZIPKIN_TRACE_ID', $trace\u2026","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","image_url":null,"blog_url":"https://int128.hatenablog.com/","blog_title":"GeekFactory","author_name":"int128","width":"100%"}