Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 97F5D200C36 for ; Fri, 24 Feb 2017 02:07:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 96A64160B64; Fri, 24 Feb 2017 01:07:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DAC69160B67 for ; Fri, 24 Feb 2017 02:07:52 +0100 (CET) Received: (qmail 30239 invoked by uid 500); 24 Feb 2017 01:07:52 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 30226 invoked by uid 99); 24 Feb 2017 01:07:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 01:07:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 810681A07ED for ; Fri, 24 Feb 2017 01:07:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.347 X-Spam-Level: X-Spam-Status: No, score=-2.347 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MVhLfF7wDGM1 for ; Fri, 24 Feb 2017 01:07:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5C05461595 for ; Fri, 24 Feb 2017 01:07:50 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C5865E08F4 for ; Fri, 24 Feb 2017 01:07:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4FC2124142 for ; Fri, 24 Feb 2017 01:07:44 +0000 (UTC) Date: Fri, 24 Feb 2017 01:07:44 +0000 (UTC) From: "Andriy Redko (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7129) Provide an optional HTrace Logging receiver MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Feb 2017 01:07:53 -0000 [ https://issues.apache.org/jira/browse/CXF-7129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15881680#comment-15881680 ] Andriy Redko commented on CXF-7129: ----------------------------------- Sample configuration: {code:java} final HashMap properties = new HashMap(); properties.put(Tracer.SPAN_RECEIVER_CLASSES_KEY, LoggingSpanReceiver.class.getName()); properties.put(LoggingSpanReceiver.LOG_LEVEL_KEY, LoggingSpanReceiver.LOG_LEVEL_INFO); ... {code} Sample output: {noformat} 15758 [qtp1684106402-20] INFO org.apache.cxf.tracing.htrace.ext.LoggingSpanReceiver - {"a":"1b42288891bf5f71c004e89f640719d9","b":1487898379117,"e":1487898381121,"d":"Get People","r":"tracer-server/192.168.0.100","p":["1b42288891bf5f71a787f4bb0ec871ae"],"t":[{"t":1487898381121,"m":"Getting all the happy people"}]} 17768 [pool-2-thread-1] INFO org.apache.cxf.tracing.htrace.ext.LoggingSpanReceiver - {"a":"1b42288891bf5f710b443428dc4dfd07","b":1487898381188,"e":1487898383188,"d":"Find Manager","r":"tracer-server/192.168.0.100","p":["1b42288891bf5f71a787f4bb0ec871ae"],"n":{"manager-id":"10"}} 18767 [qtp1684106402-20] INFO org.apache.cxf.tracing.htrace.ext.LoggingSpanReceiver - {"a":"1b42288891bf5f71985a173d474a5674","b":1487898381188,"e":1487898384188,"d":"Sort People","r":"tracer-server/192.168.0.100","p":["1b42288891bf5f71a787f4bb0ec871ae"]} 18821 [qtp1684106402-20] INFO org.apache.cxf.tracing.htrace.ext.LoggingSpanReceiver - {"a":"1b42288891bf5f71a787f4bb0ec871ae","b":1487898379100,"e":1487898384242,"d":"GET people","r":"tracer-server/192.168.0.100","p":["1b42288891bf5f718c597245d87bf377"]} 9267 [main] INFO org.apache.cxf.tracing.htrace.ext.LoggingSpanReceiver - {"a":"1b42288891bf5f718c597245d87bf377","b":1487898377012,"e":1487898385478,"d":"GET http://localhost:8282/rest/api/people","r":"tracer-client/192.168.0.100","p":[]} {noformat} > Provide an optional HTrace Logging receiver > -------------------------------------------- > > Key: CXF-7129 > URL: https://issues.apache.org/jira/browse/CXF-7129 > Project: CXF > Issue Type: Improvement > Components: Management > Reporter: Sergey Beryozkin > Assignee: Andriy Redko > Priority: Minor > > It can be useful to add the current log statements (at the specific level) to the in-scope Span information. For example, at the moment CXF interceptors will mark the start and the stop of the given span - log statements will optionally go in between, with these log statements carrying span 'tags' -- This message was sent by Atlassian JIRA (v6.3.15#6346)