Skip to content
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

Component info dump at startup #46

Open
sbellware opened this issue May 17, 2019 · 0 comments
Open

Component info dump at startup #46

sbellware opened this issue May 17, 2019 · 0 comments
Labels
Milestone

Comments

@sbellware
Copy link
Contributor

@sbellware sbellware commented May 17, 2019

Gather a graph of info about a component, it's consumers, handlers, etc, into a buffer. Output the contents at component startup.

For example:

Starting Component: TaxonomyDataComponent::Start (lib/taxonomy_data_component/start.rb)
Name: (none)

  Starting consumer: TaxonomyDataComponent::Consumers::Taxonomy::Events
  Category: taxonomy
  Identifier: (none)
  Position: 0

    Handler: TaxonomyDataComponent::Handlers::Taxonomy::Events
	Messages: Taxonomize, DataGenerated, Taxonomized

Started Component: TaxonomyDataComponent::Start
ProcessID: 65674

Possibly an implementation of the form:

info = Consumer::Info.get(SomeConsumer)

output = info.to_s
puts output

# Or:
info = Consumer::Info.get(SomeConsumer)
info.dump

# Or:
info.dump(STDOUT)

# Where the signature of dump is:
dump(device=STDOUT)

The same pattern would be represented in lower parts of the stack, from host, to consumers, handlers, and maybe even messages.

@sbellware sbellware added the feature label May 17, 2019
@sbellware sbellware added this to the v2 milestone Sep 4, 2019
@sbellware sbellware changed the title Component Info Output Component info dump at startup Sep 7, 2019
@sbellware sbellware modified the milestones: v2, v2+ Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.