wu-sheng commented on issue #10341:
URL: https://github.com/apache/skywalking/issues/10341#issuecomment-1427536236

   We could use this(replace ConvertCase to another function) to set the metric 
name without parameter.
   
   ```
   metrics:
     set(metric.name, ConvertCase(metric.name, "snake"))
   ```
   
   
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/ottl/README.md#convert-metric-name-to-snake-case
   
   ___
   Meanwhile, we could `set(attributes["job_id"], replace(metric.name, xxx))`. 
Of course, the `set(attributes...)` must run first, otherwise, the metadata 
lost.
   
   ___
   
   Could you check what I am missing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to