PowerShell module for collecting and sending Open Telemetry
powershellgallery.com/packages/potel
Install-Module -Name potel
or Install-PSResource -Name potel
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