pyroscope icon indicating copy to clipboard operation
pyroscope copied to clipboard

Implement Otel Logs for all rideshare-examples

Open simonswine opened this issue 2 years ago • 0 comments

Currently we only ship logs via otel in the golang rideshare demo.

To better show the value of using OTLP for profiles, traces and logs we should also ship those for other language examples:

- [x] Golang https://github.com/grafana/pyroscope/pull/2476
- [ ] Ruby
- [ ] Python, Example usage https://github.com/open-telemetry/opentelemetry-python/blob/main/docs/examples/logs/example.py
- [ ] .Net
- [ ] Java
- [ ] Rust

For the matching to work we should use the same service name for both and ideally also expose the region and host_name with resource tags.

Also we need to set a resource called loki.resource.labels with the tags that we want to become Loki labels. Those names need to include the original name (with .), as only later characters not allowed in Loki labels get translated into _. So service.name becomes service_name

simonswine avatar Oct 25 '23 13:10 simonswine