Apologies in advance if this doesn't work, as I'm pretty much guessing based on looking at a bit of source code, but does setting environmental variable OTEL_SERVICE_NAME to the values you want work?
WildFly sets a Micrometer OtlpConfig property named '
service.name' to 'wildfly', unless it's already configure, and if you set that env var Micrometer will use set
service.name to that value and WildFly won't set it.
That's the only place I see where we pass in "wildfly" to the Micrometer code.
Best regards,
Brian