hrxi / tracing-loki

A tracing layer for shipping logs to Grafana Loki
Apache License 2.0
43 stars 20 forks source link

Missing support for Loki Multi-Tenancy #12

Closed TheSamabo closed 1 year ago

TheSamabo commented 2 years ago

Hi, i was playing with this project and i quickly found out that its missing support multi-tenancy in loki.

I have already started working on fix.

My implementation involves passing tenant_id: Option<String> to layer function and subsequently to BackgroundTask::new() and setting a default header for http_client. I need to test it out and after that i'll do PR.

Thanks Sam