-
Notifications
You must be signed in to change notification settings - Fork 231
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
[WIP] OTEL Observability #297
Conversation
@dgduncan @mochi-co Looking for initial comments and thoughts :) |
…/observability
@mochi-co hey I'm having trouble with the test cases involving sample packets. There's quite a few of these cases, any suggestions on how I could move past this without breaking the current testing method ? |
@IshanDaga SImplest solution would be to only populate context if OTEL tracing is enabled: Index: clients.go
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/clients.go b/clients.go
--- a/clients.go (revision 9d6c78915853d616b25757776b6945885b48df22)
+++ b/clients.go (date 1697972510469)
@@ -454,7 +454,9 @@
func (cl *Client) ReadPacket(fh *packets.FixedHeader) (pk packets.Packet, err error) {
atomic.AddInt64(&cl.ops.info.PacketsReceived, 1)
- pk.Ctx, pk.Cancel = context.WithCancel(cl.State.open)
+ if cl.ops.options.OTELTracing {
+ pk.Ctx, pk.Cancel = context.WithCancel(cl.State.open)
+ }
pk.ProtocolVersion = cl.Properties.ProtocolVersion // inherit client protocol version for decoding
pk.FixedHeader = *fh |
@mochi-co makes sense, thanks ! |
@IshanDaga This PR is a bit out of date, I recommend closing it and opening a new one when there's more changes 👍🏻 |
@mochi-co makes sense, closing for now, will get back on this as soon as i have a little more free time |
Feature
Using OTEL lib to instrument the server. Happy to take suggestions on things that we should track, metrics to add, and how to allow maximum configurability for the Tracer.
Tasks
server.Options
structPending decisions