-
We've been running into
I am making an assumption that the channels IDs are monotonic and the SDK keeps track of them to be in sync with the server. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Channel IDs are just an incrementing number, and channels are associated to a connection. In other words, you can have many channels with ID 0, each of them belonging to a different connection. IIRC, the channel ID in the client (SDK) does not match the channel name in the server. In the server, the channel name is something like To answer your question: Is there a way to access it? No, not really. Since those IDs are not in sync with the channel name in the server, I don't think it will be very helpful to expose that information. I understand that it may be difficult to correlate a channel error back to the actual channel just from the amqp.Error struct. I would recommend that you store all the relevant information in the routine that is going to listen to notifications from Channel.NotifyClose, and log that information in your application, if the close notification is ever received. Hope this helps, fellow capsuleer. Fly dangerous o7 |
Beta Was this translation helpful? Give feedback.
Channel IDs are just an incrementing number, and channels are associated to a connection. In other words, you can have many channels with ID 0, each of them belonging to a different connection. IIRC, the channel ID in the client (SDK) does not match the channel name in the server. In the server, the channel name is something like
<[email protected]>
.To answer your question: Is there a way to access it? No, not really. Since those IDs are not in sync with the channel name in the server, I don't think it will be very helpful to expose that information.
I understand that it may be difficult to correlate a channel error back to the actual channel just from the amqp.Error struct. I…