logfire
logfire copied to clipboard
Custom Service Name Colors
Description
Currently, service name colors are all static, random based on the name, which can lead to the colors of different services looking too similar.
This could be done through simple CSS in the client, or something else defined at the account level, but ideally it would be a part of the otel resource attributes, however I haven't looked into the standard enough to know if you're safe putting arbitrary data there.
Ye, I've seen the same thing, I agree it's annoying.
It's fine to put arbitrary data in resource attributes, but we would need to extract them and presumably put that data in a new table - currently we don't have a store of resource level attributes, just records.
We can discuss internally how to make this happen.
Agreed, the random colors for my service names are very hard to tell apart. I'd love the ability to control this.
While making this theme-able is a fairly big task @pdjohntony, an alternative is to define a fixed but large set of colors which have good contrast between them, and then cycle through this list for services. It may not be perfect but it would likely be a lot better for almost all use-cases and it's a much faster fix.