logfire icon indicating copy to clipboard operation
logfire copied to clipboard

Custom Service Name Colors

Open tyrantlink opened this issue 9 months ago • 3 comments

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.

Image

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.

tyrantlink avatar Feb 16 '25 05:02 tyrantlink

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.

samuelcolvin avatar Feb 16 '25 10:02 samuelcolvin

Agreed, the random colors for my service names are very hard to tell apart. I'd love the ability to control this.

Image

pdjohntony avatar Aug 18 '25 18:08 pdjohntony

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.

summerscope avatar Aug 27 '25 10:08 summerscope