-
Notifications
You must be signed in to change notification settings - Fork 0
Integrate Tracing (derived from OpenTelemetry) #15
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
Comments
It seems alot of the complexity is due to the vendors fragmentation and they are trying to make everything compatible. |
Most tracing tools like https://nodejs.org/api/tracing.html and I'm interested in more than just request-driven tracing but live infinite traces (call it continuous tracing that shows finished and live spans at the same time), and correlates them too. I'm guessing we need zoomable levels of detail the ability to filter out irrelevant information dynamically. Open telemetry in particular does not appear to emit a span until it is done. I'd imagine knowing when a span started even if it did not end yet would be useful for live continuous tracing. |
Status UpdateCurrent Progress:
Research Done:✔ Analyzed Next Steps:
Timeline:🎯 Targeting completion by the next sprint meeting - 10th March, 2025 Terminal 1: React-Ink Visualization
Terminal 2: Simple Tail-Style Output
Terminal 3: Test Script (
|
@abhishek.mehta you should start to write out the tasks in this issue. Plus your progress should be in the associated feature-branch PR. |
BTW your viz shows using |
@Abby010 where is your code? I don't see an associated branch or PR for this. Are you working purely locally? Please make a branch and PR. |
@aryanjassal check this out for integration and plan with @Abby010 in order to debug PK-CLI and seed nodes. Dump data into JSON first, since the terminal react-ink is only for prototyping. |
@aryanjassal your priority right now is to help @Abby010 to prototype the integration (via monkeypatching) to get that visibility in PK. Then display it here. |
~/Projects/Polykey/node_modules/@matrixai/async-init/dist |
This issue is currently being treated like an epic, where multiple PRs will address this issue. The first PR was just the first iteration of the tracer code. |
A quick monkey patch to add tracing to the start-stop event gave me this. {"type":"start","span":{"spanId":"span-1745914565530-f7d","name":"span-startstop-Status","startTime":1745914565530,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566553-jri","name":"span-startstop-ClientService","startTime":1745914566553,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566553-r5d","name":"span-startstop-RPCServer","startTime":1745914566553,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566554-pwr","name":"span-startstop-WebSocketServer","startTime":1745914566554,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566595-sqr","name":"span-startstop-NodeConnectionManager","startTime":1745914566595,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566595-n27","name":"span-startstop-RPCServer","startTime":1745914566595,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566595-p64","name":"span-startstop-QUICSocket","startTime":1745914566595,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566596-9h3","name":"span-startstop-QUICServer","startTime":1745914566596,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566597-0xe","name":"span-startstop-NodeManager","startTime":1745914566597,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914566979-cic","name":"span-startstop-MDNS","startTime":1745914566979,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567144-fwz","name":"span-startstop-QUICConnection","startTime":1745914567144,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567146-w67","name":"span-startstop-QUICConnection","startTime":1745914567146,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567152-kp9","name":"span-startstop-QUICConnection","startTime":1745914567152,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567153-9ir","name":"span-startstop-QUICConnection","startTime":1745914567153,"isCompleted":false,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567146-w67","name":"span-startstop-QUICConnection","startTime":1745914567146,"endTime":1745914567209,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567153-9ir","name":"span-startstop-QUICConnection","startTime":1745914567153,"endTime":1745914567599,"isCompleted":true,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567636-l91","name":"span-startstop-QUICConnection","startTime":1745914567636,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567637-1m7","name":"span-startstop-QUICConnection","startTime":1745914567637,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567637-2ww","name":"span-startstop-QUICConnection","startTime":1745914567637,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567637-9s4","name":"span-startstop-QUICConnection","startTime":1745914567637,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567638-vc6","name":"span-startstop-QUICConnection","startTime":1745914567638,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567638-l7z","name":"span-startstop-QUICConnection","startTime":1745914567638,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914567638-ypa","name":"span-startstop-QUICConnection","startTime":1745914567638,"isCompleted":false,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567636-l91","name":"span-startstop-QUICConnection","startTime":1745914567636,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567637-1m7","name":"span-startstop-QUICConnection","startTime":1745914567637,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567637-2ww","name":"span-startstop-QUICConnection","startTime":1745914567637,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567637-9s4","name":"span-startstop-QUICConnection","startTime":1745914567637,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567638-vc6","name":"span-startstop-QUICConnection","startTime":1745914567638,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567638-l7z","name":"span-startstop-QUICConnection","startTime":1745914567638,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567638-ypa","name":"span-startstop-QUICConnection","startTime":1745914567638,"endTime":1745914569912,"isCompleted":true,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569921-j3f","name":"span-startstop-QUICConnection","startTime":1745914569921,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569924-27k","name":"span-startstop-QUICConnection","startTime":1745914569924,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569924-xsw","name":"span-startstop-QUICConnection","startTime":1745914569924,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569925-gvd","name":"span-startstop-QUICConnection","startTime":1745914569925,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569925-n0w","name":"span-startstop-QUICConnection","startTime":1745914569925,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569925-5ey","name":"span-startstop-QUICConnection","startTime":1745914569925,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569925-216","name":"span-startstop-QUICConnection","startTime":1745914569925,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569930-nnc","name":"span-startstop-QUICConnection","startTime":1745914569930,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569930-kwq","name":"span-startstop-QUICConnection","startTime":1745914569930,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-gv8","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-f1o","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-bjh","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-dor","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-yrj","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-p28","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-l8a","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-c72","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-8k4","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569933-9hb","name":"span-startstop-QUICConnection","startTime":1745914569933,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569936-hiu","name":"span-startstop-QUICConnection","startTime":1745914569936,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569937-0gf","name":"span-startstop-QUICConnection","startTime":1745914569937,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569937-tnx","name":"span-startstop-QUICConnection","startTime":1745914569937,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569937-2y7","name":"span-startstop-QUICConnection","startTime":1745914569937,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569940-rru","name":"span-startstop-QUICConnection","startTime":1745914569940,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569941-nk6","name":"span-startstop-QUICConnection","startTime":1745914569941,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569941-7l4","name":"span-startstop-QUICConnection","startTime":1745914569941,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569942-d0a","name":"span-startstop-QUICConnection","startTime":1745914569942,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569944-ef9","name":"span-startstop-QUICConnection","startTime":1745914569944,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569944-d2w","name":"span-startstop-QUICConnection","startTime":1745914569944,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569944-4zn","name":"span-startstop-QUICConnection","startTime":1745914569944,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569946-xg9","name":"span-startstop-QUICConnection","startTime":1745914569946,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569946-y56","name":"span-startstop-QUICConnection","startTime":1745914569946,"isCompleted":false,"children":[]}}
{"type":"start","span":{"spanId":"span-1745914569946-9ln","name":"span-startstop-QUICConnection","startTime":1745914569946,"isCompleted":false,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567144-fwz","name":"span-startstop-QUICConnection","startTime":1745914567144,"endTime":1745914571452,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567144-fwz","name":"span-startstop-QUICConnection","startTime":1745914567144,"endTime":1745914571452,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567144-fwz","name":"span-startstop-QUICConnection","startTime":1745914567144,"endTime":1745914571453,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567152-kp9","name":"span-startstop-QUICConnection","startTime":1745914567152,"endTime":1745914572595,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567152-kp9","name":"span-startstop-QUICConnection","startTime":1745914567152,"endTime":1745914572596,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914567152-kp9","name":"span-startstop-QUICConnection","startTime":1745914567152,"endTime":1745914572597,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566596-9h3","name":"span-startstop-QUICServer","startTime":1745914566596,"endTime":1745914572599,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566595-p64","name":"span-startstop-QUICSocket","startTime":1745914566595,"endTime":1745914572601,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566595-p64","name":"span-startstop-QUICSocket","startTime":1745914566595,"endTime":1745914572601,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566595-n27","name":"span-startstop-RPCServer","startTime":1745914566595,"endTime":1745914572602,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566595-sqr","name":"span-startstop-NodeConnectionManager","startTime":1745914566595,"endTime":1745914572602,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566979-cic","name":"span-startstop-MDNS","startTime":1745914566979,"endTime":1745914572610,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566597-0xe","name":"span-startstop-NodeManager","startTime":1745914566597,"endTime":1745914572918,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566554-pwr","name":"span-startstop-WebSocketServer","startTime":1745914566554,"endTime":1745914572919,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566554-pwr","name":"span-startstop-WebSocketServer","startTime":1745914566554,"endTime":1745914572919,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566553-r5d","name":"span-startstop-RPCServer","startTime":1745914566553,"endTime":1745914572919,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914566553-jri","name":"span-startstop-ClientService","startTime":1745914566553,"endTime":1745914572919,"isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745914565530-f7d","name":"span-startstop-Status","startTime":1745914565530,"endTime":1745914572944,"isCompleted":true,"children":[]}} Interestingly, some spans seem to stop multiple times. This could be an issue with how I monkey-patch stuff, or could be intentional. Currently, |
No children? |
Yesterday I was only tracking the lifecycle of a single start/stop based class individually. Now that I am using the async store, I was able to get parent-children relationships showing up! ...
{"type":"stop","span":{"spanId":"span-1745973870668-5jm","name":"span-startstop-RPCServer","startTime":1745973870668,"endTime":1745973873902,"parentSpanId":"span-1745973870668-l53","isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745973870668-l53","name":"span-startstop-NodeConnectionManager","startTime":1745973870668,"endTime":1745973873902,"isCompleted":true,"children":[{"spanId":"span-1745973870668-5jm","name":"span-startstop-RPCServer","startTime":1745973870668,"endTime":1745973873902,"parentSpanId":"span-1745973870668-l53","isCompleted":true,"children":[]},{"spanId":"span-1745973870668-d88","name":"span-startstop-QUICSocket","startTime":1745973870668,"endTime":1745973873901,"parentSpanId":"span-1745973870668-l53","isCompleted":true,"children":[]},{"spanId":"span-1745973870669-lg8","name":"span-startstop-QUICServer","startTime":1745973870669,"endTime":1745973873898,"parentSpanId":"span-1745973870668-l53","isCompleted":true,"children":[]}]}}
{"type":"stop","span":{"spanId":"span-1745973871055-q1f","name":"span-startstop-MDNS","startTime":1745973871055,"endTime":1745973873910,"parentSpanId":"span-1745973870670-cum","isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745973870670-cum","name":"span-startstop-NodeManager","startTime":1745973870670,"endTime":1745973874231,"isCompleted":true,"children":[{"spanId":"span-1745973871055-q1f","name":"span-startstop-MDNS","startTime":1745973871055,"endTime":1745973873910,"parentSpanId":"span-1745973870670-cum","isCompleted":true,"children":[]}]}}
{"type":"stop","span":{"spanId":"span-1745973870626-tt5","name":"span-startstop-WebSocketServer","startTime":1745973870626,"endTime":1745973874232,"parentSpanId":"span-1745973870625-eqx","isCompleted":true,"children":[]}}
{"type":"stop","span":{"spanId":"span-1745973870626-tt5","name":"span-startstop-WebSocketServer","startTime":1745973870626,"endTime":1745973874232,"parentSpanId":"span-1745973870625-eqx","isCompleted":true,"children":[]}}
... The |
Brian recommended some format improvements for the spans. Before I implement them, this is the output when all the async-init methods ( This artifact was generated by me starting my agent and immediately exiting it once I could see the status text like 'pid, nodeId, etc.' |
{"type":"start","id":"mBoEdF0AkcAG6TxlnEgZGfA","spanId":"mBoEdF0AkcACAsjQ5L9usMw","name":"cd-DBTransaction"}
{"type":"start","id":"mBoEdF0AocAGCemUGi1oYIA","spanId":"mBoEdF0AocACPJWiBZ0y45Q","name":"cd-DBTransaction"}
{"type":"end","id":"mBoEdF0AocAK1D8cyebY0oA","spanId":"mBoEdF0AgcACM2ZTkFTCQkg","name":"cd-DBTransaction"}
{"type":"start","id":"mBoEdF0AtcAGoBzdDplPLsA","spanId":"mBoEdF0AtcACSPe7l2/sjMQ","name":"cd-DBTransaction"}
{"type":"end","id":"mBoEdF0AxcAC3uoIDD7mMvQ","spanId":"mBoEdF0AkcACAsjQ5L9usMw","name":"cd-DBTransaction"}
{"type":"end","id":"mBoEdF0AxcAGPezS8bvIrnA","spanId":"mBoEdF0AocACPJWiBZ0y45Q","name":"cd-DBTransaction"}
{"type":"start","id":"mBoEdF0AxcAOFGMHhBwytew","spanId":"mBoEdF0AxcAK0oNx9QtADrQ","name":"cd-DBTransaction"}
{"type":"end","id":"mBoEdF0A1cACyBQGbOD0rXw","spanId":"mBoEdF0AtcACSPe7l2/sjMQ","name":"cd-DBTransaction"}
{"type":"start","id":"mBoEdF0A1cAKmZ5ipxlaD7g","spanId":"mBoEdF0A1cAGBMMDLEFKUfw","name":"cd-DBTransaction"}
{"type":"end","id":"mBoEdF0A5cACmgFZMUyb7MQ","spanId":"mBoEdF0AxcAK0oNx9QtADrQ","name":"cd-DBTransaction"}
{"type":"start","id":"mBoEdF0A9cAGnK+IICKp8Qg","spanId":"mBoEdF0A9cACmhfldXHTayg","name":"cd-DBTransaction"}
{"type":"end","id":"mBoEdF0A9cAKYig3DiYE6BQ","spanId":"mBoEdF0A1cAGBMMDLEFKUfw","name":"cd-DBTransaction"} This is a snippet of the new format of the span events. Note that the {"type":"start","id":"mBoEdFqK8cAC5iwXvImVV3Q","spanId":"mBoEdFqK4cACwDdlonLHnyA","name":"ss-Status"}
{"type":"start","id":"mBoEdFqLAcAGbiECqRUUtoQ","spanId":"mBoEdFqLAcACpsF3797KRxg","name":"cdss-cd-Schema"}
{"type":"start","id":"mBoEdFqLEcAGJ2FrcwERKyQ","spanId":"mBoEdFqLEcACJgOalOQklkQ","name":"cdss-ss-Schema"}
{"type":"start","id":"mBoEdFqLIcAGLThMCWrGBQA","spanId":"mBoEdFqLIcACym3g51WOwXg","name":"cdss-cd-KeyRing"}
{"type":"start","id":"mBoEdFqLMcACpqQxOo4fIGw","spanId":"mBoEdFqLIcAKlANZxIG6CcQ","name":"cdss-ss-KeyRing"}
{"type":"start","id":"mBoEdFq14cAGEMJ5HAtIRtw","spanId":"mBoEdFq14cACP+KGLgLEkvw","name":"cdss-cd-DB"}
{"type":"start","id":"mBoEdFq18cAGkrbXWMVhgKQ","spanId":"mBoEdFq18cACg0QgDxbyVzw","name":"cdss-ss-DB"}
{"type":"start","id":"mBoEdFq5qcAG1RS0sBJj52A","spanId":"mBoEdFq5qcACSqn9hO1WslQ","name":"cdss-cd-TaskManager"}
{"type":"start","id":"mBoEdFq5qcAObvRgiMmGLig","spanId":"mBoEdFq5qcAKWistW+/+dEw","name":"cdss-ss-TaskManager"}
...
{"type":"start","id":"mBoEdFq/GcAGJgYOGo97QpQ","spanId":"mBoEdFq/GcACiPlX9p/KFiQ","name":"cdss-cd-VaultManager"}
{"type":"start","id":"mBoEdFq/GcAO0p6TRX4mrkw","spanId":"mBoEdFq/GcAKUjD2xYUtgGQ","name":"cdss-ss-VaultManager"}
{"type":"start","id":"mBoEdFq/KcACU5r/B9QcoMQ","spanId":"mBoEdFq/GcASO5U2jQoqRng","name":"cd-DBTransaction"}
{"type":"start","id":"mBoEdFq/OcAGmoEODkEPGjQ","spanId":"mBoEdFq/OcACHCHhNJjv+Qg","parentSpanId":"mBoEdFq/GcAKUjD2xYUtgGQ","name":"cdss-ss-DB"}
{"type":"start","id":"mBoEdFrB+cAGv49+QhawOZg","spanId":"mBoEdFrB+cACw+GyKKhaJag","parentSpanId":"mBoEdFq/GcAKUjD2xYUtgGQ","name":"cdss-cd-INodeManager"}
{"type":"start","id":"mBoEdFrCDcAGh/JM4ik764g","spanId":"mBoEdFrCDcACqIx6lJQnFZA","parentSpanId":"mBoEdFq/GcAKUjD2xYUtgGQ","name":"cdss-ss-INodeManager"} For reference, |
You should be using multibase with hex16, use the same encoding we use for node IDs. You can preserve the binary order that way too if it matters. Useful for later ordered indexing. |
If #47 was merged, this issue should be fixed. However new issues can be created to address new features or bugs regarding tracing. @aryanjassal @Abby010 |
|
@shafiqihtsham - review the above concept in relation to the audit log with @faithveloro09 |
|
I have made a new issue with all the improvements we discussed about the format. This issue can now be closed as the initial version of the tracing has been merged. I need to synthesise the information from this issue into the tracing project on linear as this contains a lot of relevant information, especially regarding the project requirements, specs, and what we have explored and their results. |
Uh oh!
There was an error while loading. Please reload this page.
Specification
OpenTelemetry is an overly complicated beast. It's far too complex to adopt into a logging system. However the basic principles of tracing makes sense. Here I'm showing how you can set one up for comparison testing, for us to derive a tracing schema and later visualise it ourselves or by passing it into an OTLP compatible visualiser.
The above command runs jaeger. Take note of 4318 port which is the OTLP protocol over HTTP.
Visit
localhost:16686
to be able to view the jaeger system.Then any example code, like for example https://github.com/open-telemetry/opentelemetry-js/blob/main/examples/basic-tracer-node/index.js can run and push traces directly to the docker container.
What is frustrating is:
console.log
and produce pretty printed results that are not actual JSON. Thus you cannot just pipe it to a relevant location.The plan:
Additional context
Tasks
The text was updated successfully, but these errors were encountered: