Skip to content

Add IPFS usage metrics / extend logging / extend supported content path formats #6058

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

isum
Copy link
Member

@isum isum commented Jun 12, 2025

This PR introduces the following improvements to IPFS:

  • Adds 4 new metrics grouped by deployment hashes:
    • ipfs_request_count - shows the total number of IPFS requests
    • ipfs_error_count - shows the total number of failed IPFS requests
    • ipfs_not_found_count - shows the total number of IPFS requests that timed out
    • ipfs_request_duration - shows the duration of successful IPFS requests
  • Fixes a minor bug that could cause the IPFS gateway client to fail during initialization
  • The IPFS content path parser now supports the following formats:
    • <CID>[/<path>]
    • /ipfs/<CID>[/<path>]
    • ipfs://<CID>[/<path>]
    • http[s]://.../ipfs/<CID>[/<path>]
    • http[s]://.../api/v0/cat?arg=<CID>[/<path>]
    • http[s]://.../<CID>[/<path>]
  • IPFS error logs now include more context, such as deployment hash and the requested IPFS path

Closes #6036

@fordN fordN requested a review from lutter June 12, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IPFS logging and metrics to aid with debugging
1 participant