Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #1683

Eliot 0.7: Logging for complex and distributed systems

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <itamar@clusterhq.com>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.061
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'error:': 0.07; 'formatting': 0.09; 'modulo': 0.09; 'url:github': 0.09; 'python': 0.11; '+--': 0.16; 'exception:': 0.16; 'subject:Logging': 0.16; 'to:addr:python-announce-list': 0.16; 'error': 0.23; 'integer': 0.24; 'sends': 0.24; 'skip:e 30': 0.24; 'gets': 0.27; 'message- id:@mail.gmail.com': 0.30; 'division': 0.31; 'timestamp:': 0.31; 'trace': 0.31; 'skip:d 20': 0.34; 'received:209.85': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'error.': 0.37; 'received:209': 0.37; 'server': 0.38; 'to:addr:python.org': 0.39; 'logs': 0.60; 'skip:\xc2 10': 0.60; "you're": 0.61; 'back': 0.62; 'more': 0.64; 'caused': 0.69; '500': 0.70; '8bit%:100': 0.72; 'add-on': 0.84; 'imagine': 0.93
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Nucmp2k4qSGwfwoI74c+Rabvaz1MUlvFF/B7/mcVcc0=; b=dTb16S74yYFUxO1ekiHunNQBdf8JJa/ZfxIUubeY7GnM0RpuJPmfWyeD+xf7zMlvdH nZycsSi7soxFHBpkCtiVi1R6tErTUc/42pvsSWYax1eME9onMqJkBdLMwl3EeTfOGv7o bP1LncaaqM5v+krAw9TEV7CVcuywV9G5uMEDtCeNC0qGqmGR5f+qoAC9uUgPVUi6YNyF jbQilN3KNcOikMFYBV8MujwLpPpOWsJhSLiq0RgvWw/APq8aexEGOX1bR8zla0py2jry 6+2LgfVrNrBnl0bc4J7Kk0059WmtlP+94MXU49LZGbVyBb8tvc5xxuIZAVAUx39uoCDb ZGFQ==
X-Gm-Message-State ALoCoQmEthX93Eqbj1Q6J99wOIZW490QXxE/gI6aRt57ga70ZZCvCA7/IbA4EFfcr22FIIdA3J6L
MIME-Version 1.0
X-Received by 10.50.142.98 with SMTP id rv2mr23419711igb.11.1430254561686; Tue, 28 Apr 2015 13:56:01 -0700 (PDT)
Date Tue, 28 Apr 2015 16:56:01 -0400
Subject Eliot 0.7: Logging for complex and distributed systems
From Itamar Turner-Trauring <itamar@clusterhq.com>
To python-announce-list@python.org
X-Mailman-Approved-At Wed, 29 Apr 2015 00:49:43 +0200
Content-Type text/plain; charset=UTF-8
X-Content-Filtered-By Mailman/MimeDel 2.1.20+
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Newsgroups comp.lang.python.announce
Message-ID <mailman.66.1430261384.3680.python-announce-list@python.org> (permalink)
Lines 47
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430261384 news.xs4all.nl 2900 [2001:888:2000:d::a6]:56144
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:1683

Show key headers only | View raw


Imagine you have a client that sends a request to a server and gets back a
500 error. What caused it? If you're using Eliot you can trace the logs
across processes:

$ cat server.log client.log | python eliottree.py
e076ca50-9abc-44b2-95d8-85cf6956bc33
    +-- main@1/started
        |-- process: client
        `-- timestamp: 2015-04-28 16:50:00.379033
    +-- eliot:remote_task@2,2,1/started
        |-- process: server
        `-- timestamp: 2015-04-28 16:50:00.389533
        +-- http_request@2,1/started
            |-- process: client
            |-- timestamp: 2015-04-28 16:50:00.379096
            |-- x: 8
            `-- y: 0
        +-- divide@2,2,2,1/started
            |-- process: server
            |-- timestamp: 2015-04-28 16:50:00.389674
            |-- x: 8
            `-- y: 0
            +-- divide@2,2,2,2/failed
                |-- exception: exceptions.ZeroDivisionError
                |-- process: server
                |-- reason: integer division or modulo by zero
                `-- timestamp: 2015-04-28 16:50:00.389724
            +-- eliot:remote_task@2,2,3/failed
                |-- exception: exceptions.ZeroDivisionError
                |-- process: server
                |-- reason: integer division or modulo by zero
                `-- timestamp: 2015-04-28 16:50:00.389750
        +-- http_request@2,3/failed
            |-- exception: requests.exceptions.HTTPError
            |-- process: client
            |-- reason: 500 Server Error: INTERNAL SERVER ERROR
            `-- timestamp: 2015-04-28 16:50:00.396112
    +-- main@3/failed
        |-- exception: requests.exceptions.HTTPError
        |-- process: client
        |-- reason: 500 Server Error: INTERNAL SERVER ERROR
        `-- timestamp: 2015-04-28 16:50:00.396181

Intrigued? Learn more at https://eliot.readthedocs.org.

eliottree.py is an add-on utility for formatting Eliot logs, and can be
found at https://github.com/jonathanj/eliottree

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

Eliot 0.7: Logging for complex and distributed systems Itamar Turner-Trauring <itamar@clusterhq.com> - 2015-04-28 16:56 -0400

csiph-web