-
Notifications
You must be signed in to change notification settings - Fork 353
[OpAMP.Client] WebSocket Transport #3064
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
Conversation
|
||
internal class WsTransmitter | ||
{ | ||
private const int BufferSize = 4096; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to choose realistic buffer size, anyone suggests what are the usuals?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4096 is common in things like Stream
- you could benchmark to find if there's a better value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May need to tune later then. Prob need to get full session up and have some stats based on different message sizes.
My theory is that the most common message size should be default. 4kB for small messages, maybe increase a new block size to 8kB if there are already 2-3 4kB blocks requested 🤔
|
||
internal class WsReceiver : IDisposable | ||
{ | ||
private const int RentalBufferSize = 4096; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to choose realistic buffer size, anyone suggests what are the usuals?
test/OpenTelemetry.OpAmp.Client.Tests/PlainHttpTransportTest.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsTransport.cs
Outdated
Show resolved
Hide resolved
|
||
internal class WsTransmitter | ||
{ | ||
private const int BufferSize = 4096; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4096 is common in things like Stream
- you could benchmark to find if there's a better value.
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsReceiver.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsReceiver.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsReceiver.cs
Outdated
Show resolved
Hide resolved
…Receiver.cs Co-authored-by: Martin Costello <[email protected]>
…Receiver.cs Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
…per.cs Co-authored-by: Martin Costello <[email protected]>
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsReceiver.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsReceiver.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.OpAmp.Client/Internal/Transport/WebSocket/WsReceiver.cs
Show resolved
Hide resolved
test/OpenTelemetry.OpAmp.Client.Tests/Tools/OpAmpFakeWebSocketServer.cs
Outdated
Show resolved
Hide resolved
…Server.cs Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
…Server.cs Co-authored-by: Martin Costello <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some NITs
Co-authored-by: Martin Costello <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMRS
Changes
Adds WebSockets support for .NET.
Leaving TODO:
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes