I have a Spring Boot plugin which has 3 custom metrics connected to a main microservice and I have already exposed its metrics with the help of OpenTelemtry collector and OpenTelemtry Java agent. But the issue is that I need to add custom tags to the generated default metrics in OpenTelemtry. Is there any solution for this?
]

I tried the solutions present in Sumologic docs but it didn't work for me, and the custom tag configuration through your code option isn't specified enough.
If the attributes are not dependent on the specific application, you can add them through the collector itself.
Here is an example that adds the "deployment.environment" standard attribute to every telemetry passing through the collector (imagine this is your "staging collector", in this example):
You can look at the documentation for the "resource" processor here: