meta-llama / llama-stack

Model components of the Llama Stack APIs
MIT License
4.34k stars 553 forks source link

Simplified Telemetry API and tying it to logger #57

Closed ashwinb closed 1 month ago

ashwinb commented 1 month ago

A simple Telemetry API with three basic notions:

This should be roughly compatible with OpenTelemetry even though the goal is to keep it extremely minimal as far as possible. The most interesting part will be evolving the Event type to be a discriminated union of very opinionated event types which correspond to things happening in the ML app lifecycle.

I added a simple console provider for this API, tied standard Python logger to this API as well (for unstructured logging). We may or may not keep unstructured logging around but it is a start.

Sample output:

image