with micrometer you can set required properties through application.yaml
file and they will be added into every single span.
Example:
management:
observations:
key-values:
environment: dev
please refer to the following manual for more details
https://docs.spring.io/spring-boot/reference/actuator/observability.html