class OpenTelemetry::Exporter
- OpenTelemetry::Exporter
- Reference
- Object
Defined in:
exporter.crexporters/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
-
.new(variant : String | Symbol, &)
By building the constructors with macros, the available exporters can be expanded independently of the main codebase.
- .new(variant : String | Symbol = :null, *args, **kwargs)
Instance Method Summary
- #export(elements : Array(Elements))
- #export(element : Elements)
- #exporter : Exporters
- #variant : String
Constructor Detail
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.