-
Notifications
You must be signed in to change notification settings - Fork 156
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
OpenTelemetry proof of concept #1060
Conversation
Have you seen the ambient Activity data for the StreamJsonRpc library coming through in your testing? https://github.com/microsoft/vs-streamjsonrpc/blob/main/doc/tracecontext.md for details, but I expect that library to be giving us a parent span for each LSP call for free. Oh, we may need to set |
No, I looked into that and it doesn't seem like they setup and |
232c657
to
ac2d097
Compare
Two other considerations:
|
There is a surprising lack of embedded-otel viewer extensions for VSCode :) |
Yeah, makes me sad! This is probably the closest nice desktop viewer tool we have: https://github.com/CtrlSpice/otel-desktop-viewer |
otel-desktop-viewer didn't run on Windows, but I just submitted a PR to fix that. |
Paket Lock Diff ReportThis report was generated via Paket Lock Diff Additions - (16)
Removals - (0)Version Upgrades - (5)
Version Downgrades - (0) |
nit: there are some OTel semantic tags for source files and function calls: Maybe use these specifically:
totally optional, but IIRC some tools pick these up. |
FsOpenTelemetry handles this for us (although column isn't really available). |
4fc3d5f
to
0e610cf
Compare
86c3b5e
to
1c67dcc
Compare
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.
Left some more comments. Outside of that there's some additional things that could be done.
- Still could add tracing to places like
Commands
or other files you think are useful.
let fileName = getFileName a | ||
let userOpName = getUserOpName a | ||
do! p.Report(message = $"{fileName} - {userOpName}") |
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.
As noted, FCS doesn't start their spans with tags, so we can't get them immediately to report on. This will update our notifications with tag info if it's still around.
92f6f4a
to
eaa04fb
Compare
731bc23
to
02dd353
Compare
02dd353
to
d951d0c
Compare
e5cd7ef
to
46919e8
Compare
This is so cool 😎 |
Co-authored-by: Chet Husk <baronfel@users.noreply.github.com>
Since F# 7 now contains ActivitySource traces, this adds some barebones functionality with OpenTelemetry.
EventListener
stuff was removed in favorite ofActivity
related traces, so anything relying on that is now broke. Maybe we should figure out a way to replace that. Maybe ActivityListener or Customer Exporter ?