[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #22983 [Metrics/metrics-lib]: add a descriptor interface and implementation for web-logs
#22983: add a descriptor interface and implementation for web-logs
---------------------------------+------------------------------
Reporter: iwakeh | Owner: metrics-team
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Metrics/metrics-lib | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------------+------------------------------
Comment (by iwakeh):
Well, metrics-lib doesn't need to 'read' the contents of the logs. Thus,
the 'raw bytes' could be from the compressed content for now. Using the
compressed content might be the most efficient in terms of runtime memory
and development hassle.
A list of interface methods without the methods from `Descriptor`:
* getMeasuringHost (taken from path, i.e. the immediate parent folder
name)
* getServedHost (first part up to a dash of the filename)
* getLogDate (filename's last part before extension)
* getCompressionType (the compression type of the raw bytes, taken from
the file extension)
Maybe also for convenience
* getUncompressedData (with a comment warning about the possibly huge
deflate size)
What is missing?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22983#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs