Sidemark: Active Telemetry Comments for C#
Sidemark introduces a novel approach to telemetry in C# by using comments as non-invasive instrumentation. This method allows developers to maintain code clarity while still capturing essential telemetry data. By utilizing specific comment syntaxes, Sidemark transforms comments into telemetry calls during the build process without altering the original source code.
- ▪Sidemark uses comment syntaxes to create telemetry calls in C# code.
- ▪The approach aims to reduce code clutter caused by traditional telemetry instrumentation.
- ▪Sidemark operates as an MSBuild task, rewriting annotated code into telemetry calls at build time.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 370904) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } David Whitney Posted on May 29 • Originally published at davidwhitney.co.uk Sidemark: Active Telemetry Comments for C# #dotnet #opensource #opentelemetry #observability OpenTelemetry has quietly become table stakes. That's a good thing, but if you've instrumented a real codebase, you know the tax. A method that does one obvious thing slowly fills up with StartActivity, SetTag, AddEvent, SetStatus.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).