Opened 4 years ago

Last modified 10 months ago

#13425 assigned enhancement

Add new document type `debug` that includes digests of recently published descriptors and statuses they're referenced from

Reported by: karsten Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Onionoo Version:
Severity: Normal Keywords:
Cc: Sebastian Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

This suggestion is based on discussions with Sebastian related to #13135.

We should add a new document type, let's call it debug, that includes digests of recently published descriptors together with the valid-after/published times of statuses referencing them. This includes all kinds of descriptors published by relays/bridges, so server descriptors and extra-info descriptors, and descriptors derived from those by the directory authorities, namely microdescriptors. We should only include recently published/referenced descriptors here, which could mean in the past 24 hours.

The reason for creating a new document type is that most Onionoo clients won't care, and we shouldn't make them download something they're not interested in. There's other stuff that would go into the new document type, like vote details that can be used to debug problems with the voting process.

Example request and response (not working yet):

https://onionoo.torproject.org/debug?search=F2044413DAC2E02E3D6BCF4735A19BCA1DE97281

{
    "version": "1.1",
    "next_major_version_scheduled": "2014-11-15",
    "relays_published": "2014-10-15 15:00:00",
    "relays": [
        {
            "fingerprint": "F2044413DAC2E02E3D6BCF4735A19BCA1DE97281",
            "server_descriptors": {
                "351CB6585CF9BA311204B4E93A509183B85EBFD7": [
                    "2014-10-14 16:00:00",
                    "2014-10-14 17:00:00",
                    "2014-10-14 18:00:00",
                    "2014-10-14 19:00:00",
                    "2014-10-14 20:00:00",
                    "2014-10-14 21:00:00",
                    "2014-10-14 22:00:00",
                    "2014-10-14 23:00:00",
                    "2014-10-15 00:00:00",
                    "2014-10-15 01:00:00",
                    "2014-10-15 02:00:00",
                    "2014-10-15 03:00:00",
                    "2014-10-15 04:00:00",
                    "2014-10-15 05:00:00",
                    "2014-10-15 06:00:00",
                    "2014-10-15 07:00:00",
                    "2014-10-15 08:00:00"
                ],
                "A37A87670740D9DF0FF05EB47872D955A730FDE2": [
                    "2014-10-15 09:00:00",
                    "2014-10-15 10:00:00",
                    "2014-10-15 11:00:00",
                    "2014-10-15 12:00:00",
                    "2014-10-15 13:00:00",
                    "2014-10-15 14:00:00",
                    "2014-10-15 15:00:00"
                ]
            },
            "extrainfo_descriptors": {
                "F96656C6ED7E3334C9253E7B4F91D6ECCE854DA1": [
                    "2014-10-14 16:00:00",
                    "2014-10-14 17:00:00",
                    "2014-10-14 18:00:00",
                    "2014-10-14 19:00:00",
                    "2014-10-14 20:00:00",
                    "2014-10-14 21:00:00",
                    "2014-10-14 22:00:00",
                    "2014-10-14 23:00:00",
                    "2014-10-15 00:00:00",
                    "2014-10-15 01:00:00",
                    "2014-10-15 02:00:00",
                    "2014-10-15 03:00:00",
                    "2014-10-15 04:00:00",
                    "2014-10-15 05:00:00",
                    "2014-10-15 06:00:00",
                    "2014-10-15 07:00:00",
                    "2014-10-15 08:00:00"
                ],
                "A8DC5276EEE740F210276DEC49026270FB2B1437": [
                    "2014-10-15 09:00:00",
                    "2014-10-15 10:00:00",
                    "2014-10-15 11:00:00",
                    "2014-10-15 12:00:00",
                    "2014-10-15 13:00:00",
                    "2014-10-15 14:00:00",
                    "2014-10-15 15:00:00"
                ]
            },
            "micro_descriptors": {
                "S+wzq/7JtC5fWkQmH3pxVprpdeWpGRLvrmKr6ZO/+3Y": [
                    "2014-10-14 16:00:00",
                    "2014-10-14 17:00:00",
                    "2014-10-14 18:00:00",
                    "2014-10-14 19:00:00",
                    "2014-10-14 20:00:00",
                    "2014-10-14 21:00:00",
                    "2014-10-14 22:00:00",
                    "2014-10-14 23:00:00",
                    "2014-10-15 00:00:00",
                    "2014-10-15 01:00:00",
                    "2014-10-15 02:00:00",
                    "2014-10-15 03:00:00",
                    "2014-10-15 04:00:00",
                    "2014-10-15 05:00:00",
                    "2014-10-15 06:00:00",
                    "2014-10-15 07:00:00",
                    "2014-10-15 08:00:00",
                    "2014-10-15 09:00:00",
                    "2014-10-15 10:00:00",
                    "2014-10-15 11:00:00",
                    "2014-10-15 12:00:00",
                    "2014-10-15 13:00:00",
                    "2014-10-15 14:00:00",
                    "2014-10-15 15:00:00"
                ]
            }
        }
    ],
    "bridges_published": "2014-10-15 14:37:04",
    "bridges": []
}

Child Tickets

Change History (2)

comment:1 Changed 12 months ago by karsten

Owner: set to metrics-team
Status: newassigned

comment:2 Changed 10 months ago by teor

Severity: Normal

Set all open tickets without a severity to "Normal"

Note: See TracTickets for help on using tickets.