Tracing for Better Stack (WIP)
This library is a work in progress and is not yet ready for production use.
TODO
- Fix spans not being sent
- Fix logs not flushing on exit
Overview
This library is designed to provide a layer to for tracing that allows for logs to be streamed to Better Stack / Logtail.
Usage
// Get credentials from environment
let source_token = var
.expect;
let ingestion_url = var
.expect;
// Create Betterstack layer
let betterstack_layer = layer
.with
.with_client
.with_code_location
.with_target
.with_thread_ids;
registry
.with
.init;