Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.05 KB

potel

PowerShell module for collecting and sending Open Telemetry

CI Status

PowerShell

Install

powershellgallery.com/packages/potel

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

Docs

Full Docs

Getting Started

Auto-instrument HttpClient calls within the current PowerShell session and send traces to HoneyComb.io and the console.

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

See the sample module for a walkthrough of how to instrument your own module.