msbuild.otel 0.0.2

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package msbuild.otel --version 0.0.2
                    
NuGet\Install-Package msbuild.otel -Version 0.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="msbuild.otel" Version="0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="msbuild.otel" Version="0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="msbuild.otel" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add msbuild.otel --version 0.0.2
                    
#r "nuget: msbuild.otel, 0.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package msbuild.otel@0.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=msbuild.otel&version=0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=msbuild.otel&version=0.0.2
                    
Install as a Cake Tool

MSBuild Structured Log exporter for OpenTelemetry

Table of Contents

About

This project provides an library for parsing MSBuild Structured logs, as well as a dotnet tool for performing that same task.

Getting Started

Prerequisites

You'll need the .NET 10 SDK or greater installed to run the dotnet tool.

Installing

Install the tool with dotnet tool install msbuild.otel.harness (NAME TBD)

Usage

See the --help output for details. You can export spans to the console or an OTLP-compatible endpoint:

  • --console, to emit spans to stdout
  • --oltp-endpoint <endpoint>, to emit spans to an OTLP-compatible instance
  • --oltp-header <oltp=header>, to emit additional headers to an OTLP-compatible instance (for example authentication headers)

Full Help:

Description:
  Translates MSBuild structured log files to OpenTelemetry spans.

Usage:
  msbuild.otel.harness <logFile> [options]

Arguments:
  <logFile>  The MSBuild structured log file to parse

Options:
  --serviceName <serviceName>      The OpenTelemetry service name to use for the spans. [default: msbuild]
  --console                        Log the emitted spans to the console
  --oltp-endpoint <oltp-endpoint>  The OpenTelemetry endpoint to use for the spans.
  --oltp-header <oltp-header>      Allows for adding arbitrary headers in a key=value format. Use this option multiple times for multiple header values.
  -?, -h, --help                   Show help and usage information

Publishing

Configure a NuGet trusted publishing policy for .github/workflows/release.yml. Add the NuGet account name to the NUGET_USER repository secret.

  1. Move the released changes into a versioned and dated CHANGELOG.md section.
  2. Push a matching tag that uses the v<version> format, such as v1.2.3.

The workflow publishes both NuGet packages and creates a GitHub release.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated

### Added
- Add a GitHub Actions workflow that publishes tagged releases to NuGet and GitHub.

### Changed
- Target .NET 10.
- Manage direct dependency versions in `Directory.Packages.props`.
- Update MSBuild Structured Logger and OpenTelemetry dependencies.

### Removed
- Remove the deprecated Zipkin exporter.

### Fixed
- Support current MSBuild binary log formats.
- Preserve binary log parsing errors and handle logs without evaluation or execution phases.