class OpenTelemetry::Exporter::Http
Defined in:
exporters/http.crConstructors
- .new(endpoint : String | Nil | URI = nil, _headers : HTTP::Headers | Nil = nil, _clients : DB::Pool(HTTP::Client) | Nil = nil, *_junk, **_kwjunk)
- .new(&)
Class Method Summary
-
.normalized_traces_endpoint_uri(endpoint_uri : String)
TODO Once we support more than just traces, how this all works will have to be revised.
- .normalized_traces_endpoint_uri(endpoint_uri : URI)
Instance Method Summary
- #clients : DB::Pool(HTTP::Client)
- #clients=(clients : DB::Pool(HTTP::Client))
- #collate(elements)
- #endpoint : URI
- #endpoint=(uri : URI)
- #endpoint=(uri : String)
- #endpoint_uri : URI
- #endpoint_uri=(endpoint_uri : URI)
- #generate_payload(request)
- #handle(elements : Array(Elements))
- #headers : HTTP::Headers
- #headers=(headers : HTTP::Headers)
- #initialize_client_pool
-
#setup_standard_headers(headers)
For other HTTP based protocols, such as gRPC, this method should be overridden to set the appropriate protocol specific headers.
- #user_agent
Instance methods inherited from class OpenTelemetry::Exporter::BufferedBase
handle(elements : Array(Elements))
handle
Instance methods inherited from module OpenTelemetry::Exporter::BufferedExporter
batch_interval
batch_interval,
batch_interval=(batch_interval)
batch_interval=,
batch_latency
batch_latency,
batch_latency=(batch_latency)
batch_latency=,
batch_threshold
batch_threshold,
batch_threshold=(batch_threshold)
batch_threshold=,
loop_and_receive
loop_and_receive
Instance methods inherited from module OpenTelemetry::Exporter::UnbufferedExporter
do_reap
do_reap,
export(elements : Array(Elements))export(element : Elements) export, handle(elements : Array(Elements))
handle(element) handle, inject_telemetry_attributes(element) inject_telemetry_attributes, loop_and_receive loop_and_receive, reaped? reaped?, start start
Constructor methods inherited from module OpenTelemetry::Exporter::UnbufferedExporter
new(*_junk, **_kwjunk)new(&) new
Constructor Detail
def self.new(endpoint : String | Nil | URI = nil, _headers : HTTP::Headers | Nil = nil, _clients : DB::Pool(HTTP::Client) | Nil = nil, *_junk, **_kwjunk)
#
Class Method Detail
TODO Once we support more than just traces, how this all works will have to be revised.
Instance Method Detail
def setup_standard_headers(headers)
#
For other HTTP based protocols, such as gRPC, this method should be overridden to set the appropriate protocol specific headers.