sloglint icon indicating copy to clipboard operation
sloglint copied to clipboard

Allow key-naming-case to support dots?

Open srikanthccv opened this issue 5 months ago • 2 comments

OpenTelemetry commonly uses namespaced keys with dot notation to categorize attributes - like http.status_code, messaging.system, and service.instance.id. Could we consider supporting dots in key names? This would help us align with OTEL conventions, which we currently can't adopt due to this limitation.

I am happy to send a PR.

srikanthccv avatar Jul 28 '25 17:07 srikanthccv

I'm open to adding this, though the current implementation of key-naming-case uses an external library that does not support dot notation, if I remember correctly. There is a similar request to add support for regular expressions in #56, would something like that work for you?

tmzane avatar Aug 03 '25 13:08 tmzane

Yes, that's even better.

srikanthccv avatar Aug 03 '25 15:08 srikanthccv