From commits-return-44958-apmail-cxf-commits-archive=cxf.apache.org@cxf.apache.org Tue Jan 31 00:47:06 2017 Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DF9B19702 for ; Tue, 31 Jan 2017 00:47:06 +0000 (UTC) Received: (qmail 93009 invoked by uid 500); 31 Jan 2017 00:47:06 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 92942 invoked by uid 500); 31 Jan 2017 00:47:06 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 92933 invoked by uid 99); 31 Jan 2017 00:47:06 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2017 00:47:06 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 100C73A2199 for ; Tue, 31 Jan 2017 00:47:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1005948 - in /websites/production/cxf/content: cache/docs.pageCache docs/using-openzipkin-brave.html Date: Tue, 31 Jan 2017 00:47:04 -0000 To: commits@cxf.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170131004705.100C73A2199@svn01-us-west.apache.org> Author: buildbot Date: Tue Jan 31 00:47:04 2017 New Revision: 1005948 Log: Production update by buildbot for cxf Modified: websites/production/cxf/content/cache/docs.pageCache websites/production/cxf/content/docs/using-openzipkin-brave.html Modified: websites/production/cxf/content/cache/docs.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/cxf/content/docs/using-openzipkin-brave.html ============================================================================== --- websites/production/cxf/content/docs/using-openzipkin-brave.html (original) +++ websites/production/cxf/content/docs/using-openzipkin-brave.html Tue Jan 31 00:47:04 2017 @@ -108,13 +108,13 @@ Apache CXF -- Using OpenZipkin Brave

Overview

OpenZipkin Brave is a distributed tracing implementation compatible with Twitter Zipkin backend services, written in Java. For quite a while OpenZipkin Brave offers a dedicated module to integrate with Apache CXF framework, namely brave-cxf3. However, lately the discussion had been initiated to make this integration a part of Apache CXF codebase so the CXF team is going to be responsible for maintaining it. As such, it is going to be available in upcoming 3.2.0 release under cxf-integration-tracing-brave module, with both client side and server side supported. This section gives a complete overview on how distributed tracing using OpenZipkin Brave could be integrated into JAX-RS / JAX-WS applications built on top of Apache CXF.

 

 

+/*]]>*/

Overview

OpenZipkin Brave is a distributed tracing implementation compatible with Twitter Zipkin backend services, written in Java. For quite a while OpenZipkin Brave offers a dedicated module to integrate with Apache CXF framework, namely brave-cxf3. However, lately the discussion had been initiated to make this integration a part of Apache CXF codebase so the CXF team is going to be responsible for maintaining it. As such, it is going to be available in upcoming 3.2.0 release under cxf-integration-tracing-brave module, with both client side and server side supported. This section gives a complete overview on how distributed tracing using OpenZipkin Brave could be integrated into JAX-RS / JAX-WS applications built on top of Apache CXF.

OpenZipkin Brave is inspired by the Twitter Zipkin and Dapper, a Large-Scale Distributed Systems Tracing Infrastructure paper and is a full-fledged distributed tracing framework. The section dedicated to Apache HTrace has pretty good introduction into distributed tracing basics. However, there are a few key differences between Apache HTrace and OpenZipkin Brave. In Brave every Span is associated with 128 or 64-bit long Trace ID, which logically groups the spans related to the same distributed unit of work. Within the process spans are collected by reporters (it could be a console, local file, data store, ...). OpenZipkin Brave provides span reporters for Twitter Zipkin and java.util.logging loggers.

Under the hood spans are attached to their threads (in general, thread which created the span should close it), the same technique employed by other distributed tracing implementations. However, what is unique is that OpenZipkin Brave distinguishes three different types of tracers:

  • server tracer (com.github.kristofa.brave.ServerTracer)
  • client tracer (com.github.kristofa.brave.ClientTracer)
  • local tracer (com.github.kristofa.brave.LocalTracer)

Apache CXF integration uses client tracer to instantiate spans on client side (providers and inter ceptors) to demarcate send / receive cycle, server tracer on the server side (providers and interceptors) to demarcate receive / send cycle, while using local tracer for any spans instantiated within a process.

Distributed Tracing in Apache CXF using OpenZipkin Brave