{"repo":"MrAlias/flow","free":true,"listed":false,"github":"https://github.com/MrAlias/flow","clone":"git clone https://github.com/MrAlias/flow.git","description":"An OpenTelemetry SpanProcessor reporting tracing flow metrics","language":"Go","stars":11,"topics":["otel","opentelemetry","opentelemetry-go","tracing","metrics","prometheus"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"flow An OpenTelemetry [ SpanProcessor ] reporting tracing flow metrics. Getting Started Assuming you have working code using the OpenTelemetry SDK, update the registration of your exporter to use a wrapped [ SpanProcessor ]. Update your exporter registration with a [ BatchSpanProcessor ] to use the equivalent flow [ TracerProviderOption ]. More generically, all [ SpanProcessor ]s can be wrapped directly. See the included example for an end-to-end illustration of functionality. Produced Metrics The flow [ SpanProcessor ] will report spans total metrics as a counter. They are exposed at localhost:41820 by default (this can be changed using the WithListenAddress option). Configure a locally running [Prometheus] or [OpenTelemetry Collector] instance to scrape these using a scrape target similar to this. [ SpanProcessor ]: https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#SpanProcessor [ BatchSpanProcessor ]: https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#NewBatchSpanProcessor [ TracerProviderOption ]: https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#TracerProviderOption [Prometheus]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/ [OpenTelemetry Collector]: https://opentelemetry.io/docs/collector/configuration/#receivers","default_branch":null,"files":null,"tree":[],"storefront":"/r/MrAlias","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MrAlias/flow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}