Skip to content
/ potel Public

PowerShell module for collecting and sending Open Telemetry

License

Notifications You must be signed in to change notification settings

cdhunt/potel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published