Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cdhunt/potel
- Owner: cdhunt
- License: apache-2.0
- Created: 2023-12-01T13:08:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-12T16:57:11.000Z (about 2 months ago)
- Last Synced: 2024-12-12T17:36:51.567Z (about 2 months ago)
- Topics: devops-toolkit, open-telemetry, open-telemetry-csharp, otel, powershell
- Language: PowerShell
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
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
```