Skip to content

Display container-id in the UI and CLI #12302

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

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Display container-id in the UI and CLI #12302

merged 1 commit into from
Sep 13, 2024

Conversation

ansd
Copy link
Member

@ansd ansd commented Sep 13, 2024

Example:

  1. Connect via AMQP 1.0
	conn, err := amqp.Dial(context.TODO(), "amqp://localhost", &amqp.ConnOptions{
		SASLType:    amqp.SASLTypeAnonymous(),
		ContainerID: "my container ID",
		Properties: map[string]any{
			"foo":             1,
			"connection_name": "my connection"},
	})
  1. Connect via AMQP 0.9.1 java -jar target/perf-test.jar -x 0 -y 0

CLI will the AMQP 1.0 container-id:

./sbin/rabbitmqctl list_connections pid protocol name container_id --formatter=pretty_table
Listing connections ...
┌────────────────┬──────────┬───────────────────────────────────┬─────────────────┐
│ pid            │ protocol │ name                              │ container_id    │
├────────────────┼──────────┼───────────────────────────────────┼─────────────────┤
│ <13445.1162.0> │ {1,0}    │ [::1]:53091 -> [::1]:5672         │ my container ID │
├────────────────┼──────────┼───────────────────────────────────┼─────────────────┤
│ <13445.1366.0> │ {0,9,1}  │ 127.0.0.1:53366 -> 127.0.0.1:5672 │                 │
└────────────────┴──────────┴───────────────────────────────────┴─────────────────┘

UI Connection(s) tabs shows the container ID (including help text):

Screenshot 2024-09-13 at 14 02 05 Screenshot 2024-09-13 at 14 04 26

@ansd ansd force-pushed the container-id branch 2 times, most recently from 32dde12 to e87fe57 Compare September 13, 2024 10:05
@ansd ansd added this to the 4.1.0 milestone Sep 13, 2024
@ansd ansd marked this pull request as ready for review September 13, 2024 12:09
@ansd ansd merged commit f78f14a into main Sep 13, 2024
199 checks passed
@ansd ansd deleted the container-id branch September 13, 2024 15:05
michaelklishin added a commit that referenced this pull request Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants