class OpenTelemetry::Exporter

Defined in:

exporter.cr
exporters/abstract.cr
exporters/base.cr
exporters/buffered_base.cr
exporters/buffered_exporter.cr
exporters/http.cr
exporters/io.cr
exporters/null.cr
exporters/stdout.cr
exporters/unbuffered_exporter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(variant : String | Symbol, &) #

By building the constructors with macros, the available exporters can be expanded independently of the main codebase. So long as the class is required before this class, so that it is already defined in the OpenTelemetry::Exporter::* namespace, it will be accounted for in the contructors here. It, however, is up to the developers of any exporters to ensure that they choose a name which doesn't conflict with one already defined in the OpenTelemetry::Exporter::* namespace.


def self.new(variant : String | Symbol = :null, *args, **kwargs) #

Instance Method Detail

def export(elements : Array(Elements)) #

def export(element : Elements) #

def exporter : Exporters #

def variant : String #