Std.App.Otlp.send
fn
send: &Std.App.Otlp.Exporter -> &Array[Std.App.Trace.Span] -> Result[Int, Std.App.Otlp.ExportError]This is a callable function.
What it does
Send finished spans to the collector.
Spans that have not finished are left out rather than sent with an ending
they do not have: a span whose end is guessed is worse than a span that is
missing, because it will be read as a measurement.
Answers how many were sent, so a caller can tell an export that carried
nothing from one that carried everything.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Result makes success and recoverable failure part of the function's type.
