moonbitstack/moontel/otlp does not have a README file
pub struct Batch[T] {
items : Ref[Array[T]]
since : Ref[Int64]
policy : BatchPolicy
dropped : Ref[Int]
}fn BatchPolicy::new(queue_limit? : Int, batch? : Int, delay? : Int64, timeout? : Int64) -> BatchPolicypub(all) enum BodyFormat {
Json
Protobuf
}pub(all) struct BodyLimits {
request : Int
response : Int
}pub struct JsonEncoding {
}impl Sink for LogsExporterfn LogsExporter::new(transport~ : &Transport, endpoint? : String, headers? : Array[(String, String)], resource? : Resource, scope? : Scope, policy? : BatchPolicy, encoding? : &Encoding, limits? : BodyLimits, backoff? : Backoff, attempts? : Int, now~ : () -> Int64, rand~ : (Int) -> Bytes, pause? : async (Int64) -> Unit) -> LogsExporterpub(all) struct Metric {
name : String
description : String
unit : String
kind : MetricKind
points : Array[DataPoint]
} derive(Eq, Debug)pub(all) enum MetricKind {
Gauge
Sum(temporality~ : Temporality, monotonic~ : Bool)
Histogram(temporality~ : Temporality)
ExponentialHistogram(temporality~ : Temporality)
Summary
} derive(Eq, Debug)impl MetricSink for MetricRecorderimpl MetricSink for MetricsExporterfn MetricsExporter::new(transport~ : &Transport, endpoint? : String, headers? : Array[(String, String)], resource? : Resource, scope? : Scope, policy? : BatchPolicy, encoding? : &Encoding, limits? : BodyLimits, backoff? : Backoff, attempts? : Int, now~ : () -> Int64, rand~ : (Int) -> Bytes, pause? : async (Int64) -> Unit) -> MetricsExporterpub struct Outbox[T] {
transport : &Transport
url : String
headers : Array[(String, String)]
encode : (Array[T]) -> Bytes
encoding : &Encoding
policy : BatchPolicy
limits : BodyLimits
backoff : Backoff
attempts : Int
pause : async (Int64) -> Unit
now : () -> Int64
rand : (Int) -> Bytes
batch : Batch[T]
lock : Mutex
stats : Ref[Stats]
}pub(all) enum Point {
AsDouble(Double)
AsInt(Int64)
Buckets(bounds~ : Array[Double], counts~ : Array[Int64], sum~ : Double, count~ : Int64, min~ : Double?, max~ : Double?)
ExponentialBuckets(scale~ : Int, zero_count~ : Int64, positive_offset~ : Int, positive_counts~ : Array[Int64], negative_offset~ : Int, negative_counts~ : Array[Int64], sum~ : Double, count~ : Int64, min~ : Double?, max~ : Double?)
Quantiles(quantiles~ : Array[(Double, Double)], sum~ : Double, count~ : Int64)
} derive(Eq, Debug)impl Sink for TraceExporterfn TraceExporter::new(transport~ : &Transport, endpoint? : String, headers? : Array[(String, String)], resource? : Resource, scope? : Scope, policy? : BatchPolicy, encoding? : &Encoding, limits? : BodyLimits, backoff? : Backoff, attempts? : Int, now~ : () -> Int64, rand~ : (Int) -> Bytes, pause? : async (Int64) -> Unit) -> TraceExporterfn retry_after_milliseconds(value : StringView, now~ : Int64) -> Int64?Install
Download zipOpenTelemetry for MoonBit.