-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inject session UUID into root context #435
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
Comments
btc
added
the
kind/enhancement
A net-new feature or improvement to an existing feature
label
Dec 9, 2014
@maybebtc sgtm. may also be good to make a session object, which could include our metrics object # yml for easy typing
id: <uuid>
timeStart: <ISO datetime> # gives us uptime
metrics:
bandwidth: { "in": <num>, "out": <num bytes> }
protocolMessages: # per-protocol msg counts
total: { "in": <num>, "out": <num bytes> }
handshakes: { "in": <num>, "out": <num bytes> }
bitswap: { "in": <num>, "out": <num bytes> }
dht: { "in": <num>, "out": <num bytes> }
...
clientRequests: # per-command counts
total: <num>
add: <num>
ls: <num>
... and so on. |
hm, that might be too much data to dump out on every request... maybe these are two separate things.: # the session (logged with everything)
<uuid>
# the metrics, logged periodically (minute?)
uptime:
timeStart: <ISO datetime>
timeOnline: <now - uptime.timeStart>
bandwidth: { "in": <num>, "out": <num bytes> }
protocolMessages: # per-protocol msg counts
total: { "in": <num>, "out": <num bytes> }
handshakes: { "in": <num>, "out": <num bytes> }
bitswap: { "in": <num>, "out": <num bytes> }
dht: { "in": <num>, "out": <num bytes> }
...
clientRequests: # per-command counts
total: <num>
add: <num>
ls: <num>
... |
added in #436 further work:
|
ariescodescream
pushed a commit
to ariescodescream/go-ipfs
that referenced
this issue
Oct 23, 2021
…com/hashicorp/golang-lru-0.5.4 build(deps): bump github.com/hashicorp/golang-lru from 0.5.3 to 0.5.4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a context.Context created at the top of
main.go
.What would we gain if we were to inject a UUID into it using the eventlog library?
With this in place, perhaps...
To make this a reality, it would be necessary to...
context.TODO
s andcontext.Background
sEventlog output would look like this...
The text was updated successfully, but these errors were encountered: