You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ch...@apache.org on 2016/04/25 11:19:15 UTC
svn commit: r1740785 -
/sling/site/trunk/content/documentation/bundles/log-tracers.mdtext
Author: chetanm
Date: Mon Apr 25 09:19:15 2016
New Revision: 1740785
URL: http://svn.apache.org/viewvc?rev=1740785&view=rev
Log:
SLING-5459 - Recording of tracer logs
Adjust formatting
Modified:
sling/site/trunk/content/documentation/bundles/log-tracers.mdtext
Modified: sling/site/trunk/content/documentation/bundles/log-tracers.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/log-tracers.mdtext?rev=1740785&r1=1740784&r2=1740785&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/log-tracers.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/log-tracers.mdtext Mon Apr 25 09:19:15 2016
@@ -161,6 +161,8 @@ This would result in following server si
## Tracer Recording
+_Since 1.0.0 [SLING-5459][SLING-5459]_
+
Apart from routing the logs to the server logs they can also be stored in memory and accessed in
json form from Felix Web Console. By default support for recording is disabled and it needs to be
explicitly enabled via OSGi config
@@ -177,6 +179,7 @@ Recording features works as explained be
-d "./jcr:content/jcr:primaryType=nt:unstructured" \
-d "tracers=oak-writes" \
http://localhost:4802/content/dam/
+
2. Server includes a request id as part of `Sling-Tracer-Request-Id` response headers
HTTP/1.1 201 Created
@@ -187,15 +190,17 @@ Recording features works as explained be
Location: /content/dam/summer-collection
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
+
3. The logs in json format can then be fetched from server at `/system/console/tracer` like
- http://localhost:8080/system/console/tracer/9b5b01f6-f269-47c3-a889-2dc8d4d7938f.json. Below
- is a json output for GET request
+ http://localhost:8080/system/console/tracer/9b5b01f6-f269-47c3-a889-2dc8d4d7938f.json.
curl -s -D - -H "Sling-Tracer-Record : true" -H "Sling-Tracers : oak-query" \
-H "Sling-Tracer-Config : org.apache.jackrabbit.oak.query" \
-u admin:admin http://localhost:4512/assets.html/content/dam -o /dev/null
- ::javascript
+ Below is a json output for GET request
+
+ :::javascript
{
"method": "GET",
"time": 15140,
@@ -256,4 +261,5 @@ Download the bundle from [here][5] or us
[4]: http://dev.day.com/content/ddc/blog/2008/06/requestprogresstracker.html
[SLING-4739]: https://issues.apache.org/jira/browse/SLING-4739
[SLING-5505]: https://issues.apache.org/jira/browse/SLING-5505
+[SLING-5459]: https://issues.apache.org/jira/browse/SLING-5459
[5]: http://sling.apache.org/downloads.cgi