hrxi / tracing-loki

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

Join a relative loki URL to allow prefixes #10

Closed kellerkindt closed 1 year ago

kellerkindt commented 2 years ago

This allow one to move loki behind a reverse-proxy on another path:

    let (layer, task) = tracing_loki::layer(
        Url::parse("http://127.0.0.1:3100/my/very/other/path/to/loki/").unwrap(),
        vec![("host".into(), "mine".into())].into_iter().collect(),
        vec![].into_iter().collect(),
    )?;
hrxi commented 1 year ago

Thanks. I'll move it to work behind the new builder API only, in order to stay backward-compatible.