Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cdhunt/potel

PowerShell module for collecting and sending Open Telemetry
https://github.com/cdhunt/potel

devops-toolkit open-telemetry open-telemetry-csharp otel powershell

Last synced: about 2 months ago
JSON representation

PowerShell module for collecting and sending Open Telemetry

Awesome Lists containing this project

README

        

# potel
PowerShell module for collecting and sending Open Telemetry

## CI Status

[![PowerShell](https://github.com/cdhunt/potel/actions/workflows/powershell.yml/badge.svg)](https://github.com/cdhunt/potel/actions/workflows/powershell.yml)

## Install

[powershellgallery.com/packages/potel](https://www.powershellgallery.com/packages/potel)

`Install-Module -Name potel` or `Install-PSResource -Name potel`

## Docs

[Full Docs](docs)

### Getting Started

Auto-instrument `HttpClient` calls within the current PowerShell session and send traces to [HoneyComb.io](https://honeycomb.io) and the console.

```powershell
New-TracerProviderBuilder |
Add-TracerSource -Name "potel" |
Add-ResourceConfiguration -ServiceName $ExecutionContext.Host.Name -Attribute @{"host.name" = $(hostname)} |
Add-HttpClientInstrumentation |
Add-ExporterOtlpTrace -Endpoint https://api.honeycomb.io:443 -Headers @{'x-honeycomb-team'='abc123'} |
Add-ExporterConsole |
Start-Tracer
```