class OpenTelemetry::HTTPExporter

Overview

The HTTPExporter sends your telemetry data to an HTTP service using OTLP/HTTP.

Included Modules

Defined in:

exporter.cr

Constructors

Instance Method Summary

Instance methods inherited from module OpenTelemetry::Exporter

trace(traces : Array(Trace))
trace(trace : Trace)
trace

Constructor Detail

def self.new(endpoint : URI, headers : HTTP::Headers) #

Configures the exporter to send telemetry to the given HTTP collector for OpenTelemetry data.


[View source]

Instance Method Detail

def endpoint : URI #

[View source]
def headers : HTTP::Headers #

[View source]
def trace(traces : Array(Trace)) #

Send a collection of traces to the exporters trace endpoint


[View source]