Replies: 4 comments 5 replies
-
I love that viewer, it's the simplest way to get up and running with otel <3 It's what I was hoping to use with a toggle in Ionide to transparently start collecting traces. For your code sample, you shouldn't need to provide any parameters to the otel exporter because those are the defaults, so that should make the hooking up even simpler. |
Beta Was this translation helpful? Give feedback.
-
Did you see this PR? #15223 Jaeger is similarly easy to use, just download & run. I didn't try any other viewers because I was happy with it. And it's already included in test projects. But we could include the other one as well, or if it's better just use that one. Don't know about putting it in I would also really like to hook it up to VS locally but didn't figure that out yet. And yes, we should add documentation for it :) |
Beta Was this translation helpful? Give feedback.
-
Regarding fsc project - we shouldn't have anything there, as it's a part of shipping product. Separate project or dynamic loading of exporter might work as well. |
Beta Was this translation helpful? Give feedback.
-
Hey, otel maintainer here -- I would say that an exporter in the fsc project makes sense and would be great to have. The overhead is likely marginal and it'd be great to just be able to run the compiler and whatever local tool you have picks it up so you can see a full compile run. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Earlier today I was debugging
IncrementalBuild.fs
and was feeling quite overwhelmed and confused about where the code was flowing. Then it hit, I could try and view some of the open telemetry traces that were added in #13835.I really a noob when it comes to otel. I understand what it is, but have never really played with it myself. Never did Jaegher, Zipkin or other stuff, so I was pretty clueless about how to enable it during my unit test.
After reading some threads I found out that it is quite easy to connect to otel-desktop-viewer.
I downloaded the latest (Windows) release and started the executable.
Next, I added OpenTelemetry.Exporter.OpenTelemetryProtocol to
FSharp.Compiler.ComponentTests.fsproj
and hook it up using:and I started seeing traces like:
This is pretty useful and so my open questions about this are:
OpenTelemetry.Exporter.OpenTelemetryProtocol
in test projects? And maybe some helpers to easily ad-hoc use this.fsc.fsproj
? Maybe a second project somewhere that users can tweak to have otel during local compilations.Beta Was this translation helpful? Give feedback.
All reactions