Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

experimental introspection support #159

Merged
merged 22 commits into from
Jun 5, 2020
Merged

experimental introspection support #159

merged 22 commits into from
Jun 5, 2020

Conversation

raulk
Copy link
Member

@raulk raulk commented Jun 5, 2020

EXPERIMENTAL WORK

This PR introduces introspection support to go-libp2p-core.

  • New introspection package encapsulating all introspection abstractions.
    • Introspector: to be satisfied by components that are capable of spelunking the state of the system, and representing in accordance with the introspection schema.
    • IntrospectionEndpoint: interface to be implemented by introspection endpoints. An introspection endpoint makes introspection data accessible to external consumers, over, for example, WebSockets, or TCP, or libp2p itself.
  • New host.IntrospectableHost interface to be implemented by introspectable hosts.
  • Protobuf introspection schema under introspection/pb.
  • ID() string methods in network.Conn and network.Stream.
  • Opened field in network.Stat to track the opening timestamp of connections and streams.

Lands #107 #142 #111.

@raulk raulk changed the title introspection support experimental introspection support Jun 5, 2020
@raulk raulk merged commit 21efed7 into master Jun 5, 2020
@raulk raulk deleted the feat/introspection2.0 branch June 5, 2020 11:24
@aschmahmann aschmahmann mentioned this pull request Sep 22, 2020
72 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants