msbuild.otel.harness 0.0.1

dotnet tool install --global msbuild.otel.harness --version 0.0.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local msbuild.otel.harness --version 0.0.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=msbuild.otel.harness&version=0.0.1                
nuke :add-package msbuild.otel.harness --version 0.0.1                

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 dotnet SDK version 6.0 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, but the gist is that you can specify any of 3 exporters:

  • --console, to emit spans to stdout
  • --zipkin-endpoint <endpoint>, to emit spans to a zipkin instance, or
  • --oltp-endpoint <endpoint>, to emit spans to an OLTP-compatible instance
  • --oltp-header <oltp=header>, to emit additional headers to an OLTP-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.
  --zipkin-endpoint <zipkin-endpoint>  The Zipkin endpoint to use for the spans.
  -?, -h, --help                       Show help and usage information
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.0.1 295 1/31/2022

### Added
- Initial exporter with support for console, zipkin, and OLTP trace exports.