Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Event Log Endpoint #1099

Closed
frrist opened this issue Nov 21, 2017 · 1 comment
Closed

Event Log Endpoint #1099

frrist opened this issue Nov 21, 2017 · 1 comment
Assignees
Labels
exp/expert Having worked on the specific codebase is important exploration help wanted Seeking public contribution on this issue kind/wontfix status/deferred Conscious decision to pause or backlog

Comments

@frrist
Copy link
Member

frrist commented Nov 21, 2017

I would like to propose adding an event log endpoint.

Currently go-ipfs supports event logging at the endpoint: api/v0/log/tail. Services like ipfs-metrics make use of this to gather metrics about events occurring in the different systems of ipfs.

https://ipfs.io/docs/api/#apiv0logtail

Ideally the event logs will be easy to add (as it is not imminently clear where they need to be placed in the code), in json format, and contain the following:

  • time
    • when the event occurred
  • system
    • System responsible for the event, e.g. DHT
  • event
    • The name of the event, e.g. getClosestPeers
  • duration
  • requestId
    • based on the event context, e.g. all events created from the command jsipfs add contain this ID
  • subsystem
    • If applicable
  • Logging Metadata (K,V)
    • i.e. errors if the event was unsuccessful, CID of data being fetch
    • Similar to the interface implemented by go-log

What does everyone think?

@daviddias daviddias added status/ready Ready to be worked exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue exploration P2 Medium: Good to have, but can wait until someone steps up labels Jan 25, 2018
@achingbrain achingbrain removed the P2 Medium: Good to have, but can wait until someone steps up label May 21, 2020
@hugomrdias hugomrdias added status/deferred Conscious decision to pause or backlog and removed status/ready Ready to be worked labels May 21, 2020
@SgtPooki SgtPooki moved this to 🥞 Todo in js-ipfs deprecation May 17, 2023
@whizzzkid whizzzkid assigned achingbrain and unassigned whizzzkid May 24, 2023
@achingbrain
Copy link
Member

js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide.

Helia does not follow the Kubo API so this endpoint will not be implemented.

To call the same endpoints on Kubo you should switch out ipfs-http-client for kubo-rpc-client.

Similar metrics can be extracted from libp2p directly by configuring a metrics implementation such as @libp2p/prometheus-metrics.

@github-project-automation github-project-automation bot moved this from 🥞 Todo to ✅ Done in js-ipfs deprecation Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/expert Having worked on the specific codebase is important exploration help wanted Seeking public contribution on this issue kind/wontfix status/deferred Conscious decision to pause or backlog
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants