pg-yang commented on PR #83:
URL: 
https://github.com/apache/skywalking-showcase/pull/83#issuecomment-1273394712

   Prometheus set  job_name to otel  resource attributes as `service.name` ,  
Skywalking  convert it back to job_name . 
   By  testing , `OTEL_SERVICE_NAME` env   couldn't  cover   `service.name` 
which set  by Prometheus
   So , I couldn't  leverage `service .name  ` as  skywalking service , I 
prefer add new attribute (e. g.  skywalking_ service_name ) to  otel as  
skywalking service identity , that would distinguish with job_name
   
   ```yaml
   processors:
   # 
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourceprocessor/README.md
            
     resource/skywalking-service:
       attributes:
       - key: skywalking_service_name
         value: apisix-frontend
         action: insert    
   ```


-- 
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