Skip to content

Latest commit

 

History

History
70 lines (36 loc) · 1.94 KB

Add-ExporterOtlpTrace.md

File metadata and controls

70 lines (36 loc) · 1.94 KB

Add-ExporterOtlpTrace

Adds OpenTelemetry.Exporter.Console

Parameters

Parameter Set 1

  • [TracerProviderBuilderBase] TracerProvider Instance of TracerProviderBuilderBase.. Mandatory, ValueFromPipeline
  • [String] Endpoint OTLP endpoint address. Mandatory
  • [Hashtable] Headers Headers to send.
  • [UInt32] Timeout Send timeout in ms.
  • [String] Protocol 'grpc' or 'http/protobuf'.

Parameter Set 2

  • [MeterProviderBuilderBase] MeterBuilder Instance of MeterProviderBuilderBase.. Mandatory, ValueFromPipeline
  • [String] Endpoint OTLP endpoint address. Mandatory
  • [Hashtable] Headers Headers to send.
  • [UInt32] Timeout Send timeout in ms.
  • [String] Protocol 'grpc' or 'http/protobuf'.

Examples

Example 1

New-TracerProviderBuilder | Add-HttpClientInstrumentation | Add-ExporterOtlpTrace -Endpoint http://localhost:9999 | Start-Trace

Example 2

Configure the Otlp Exporter for Honeycomb.

Add-ExporterOtlpTrace  https://api.honeycomb.io:443 -Headers @{'x-honeycomb-team'='token'}

Example 3

Configure the Otlp Exporter for Dynatrace.

Add-ExporterOtlpTrace -Endpoint https://{your-environment-id}.live.dynatrace.com/api/v2/otlp -Headers @{'Authorization'='Api-Token dt.....'} -Protocol 'http/protobuf'

Links