You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/10/16 19:56:47 UTC

[GitHub] [couchdb] nickva opened a new pull request #2259: Enable FDB transaction tracing

nickva opened a new pull request #2259: Enable FDB transaction tracing
URL: https://github.com/apache/couchdb/pull/2259
 
 
   To trace FDB transactions:
   
    1. Enable tracing in erlfdb application environment:
        `network_options = [{trace_enable, ...}]`
      OR with an environment variable:
        `FDB_NETWORK_OPTION_TRACE_ENABLE = ""`
   
    2. Set `[fabric] fdb_trace=true` configuration value
   
    3. Add the `x-couchdb-fdb-trace:true` header to each request that should be
      traced.
   
   Config value (2) guards against DoS abuse. Even with tracing disabled in the
   FDB C client, setting the transaction name is an expensive operation.
   
   The transaction name is set to the nonce value, which is already used by
   CouchDB to track API requests.
   
   Only transactions started from the main request process will be traced. So if a
   process is spawned without inheriting the `erlfdb_trace` process dict key, that
   transaction will not be traced.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services