Deepak-0822 commented on issue #12650:
URL: https://github.com/apache/apisix/issues/12650#issuecomment-3396612921

   Hi @Baoyuantop, below command i used for OTL setup as follows the APISIX 
documentation, please check the command below, if anything changes let me know,
   curl http://127.0.0.1:9180/apisix/admin/plugin_metadata/opentelemetry -H 
"X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
   {
       "trace_id_source": "x-request-id",
       "resource": {
         "service.name": "APISIX"
       },
       "collector": {
         "address": "http://otel-collector.ingress-apisix.svc:4318";,
         "request_timeout": 3,
         "request_headers": {
           "Authorization": "token"
         }
       },
       "batch_span_processor": {
         "drop_on_queue_full": false,
         "max_queue_size": 1024,
         "batch_timeout": 2,
         "inactive_timeout": 1,
         "max_export_batch_size": 16
       },
       "set_ngx_var": false
   }'
   ___
   curl -X PUT "http://127.0.0.1:9180/apisix/admin/routes/otel-tracing-route"; ^
   -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" ^
   -H "Content-Type: application/json" ^
   -d 
"{\"id\":\"otel-tracing-route\",\"uri\":\"/anything\",\"plugins\":{\"opentelemetry\":{\"sampler\":{\"name\":\"always_on\"}}},\"upstream\":{\"type\":\"roundrobin\",\"nodes\":{\"httpbin.org\":1}}}"
   
   Even if i set ngx var true it's not working.


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