dotnet / dotnet/msbuild

Implement hooking of custom telemetry exporters/collectors

Open
#11,148 0 comments 0 reactions 0 assignees View on GitHub
Area: Telemetry triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

Enabling hooking of custom telemetry exporting/collection would be useful for customers who want simple observability of builds with OpenTelemetry.
In core hooking OpenTelemetry can be achieved with a Startup Hook https://github.com/baronfel/otel-startup-hook/, in Framework it has to use some workarounds.

### Background and Motivation

https://github.com/dotnet/msbuild/pull/11013
- it is one of the goals

Precondition for the utility of this feature is to have data points instrumented with System.Diagnostics Activities. https://github.com/dotnet/msbuild/issues/10946

### Proposed Feature

https://github.com/JanProvaznik/otel-startup-hook/tree/doublehook

Productize this demo (probably as a repo with instructions how to use in MSBuild).

### Alternative Designs

It could be implemented as part of Microsoft.Build.Framework but that would increase our reliance on OpenTelemetry packages.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.