Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 988 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 988 Bytes

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