You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/10/13 09:30:59 UTC

[GitHub] [apisix] ZhangShangyu commented on issue #8084: feat: opentelemetry plugin set http status code to span tag by default

ZhangShangyu commented on issue #8084:
URL: https://github.com/apache/apisix/issues/8084#issuecomment-1277312440

   i try to add status in additional_attributes config, but there is an error happened
   
   apisix.yaml:
   ```
   opentelemetry:
       sampler:
         name: always_on
       additional_attributes:
         - route_id
         - status
   ```
   
   apisix error log:
   ```
   2022/10/13 08:02:47 [error] 133#133: *402129 lua entry thread aborted: runtime error: ...deps/share/lua/5.1/opentelemetry/trace/exporter/otlp.lua:67: bad argument #2 to 'encode' (string expected for field 'string_value', got number)
   stack traceback:
   coroutine 0:
   	[C]: in function 'encode'
   	...deps/share/lua/5.1/opentelemetry/trace/exporter/otlp.lua:67: in function 'export_spans'
   	...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:18: in function 'process_batches'
   	...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:46: in function <...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:29>, context: ngx.timer, client: 172.17.0.1, server: 0.0.0.0:24221
   ```
   
   apisix version: 2.13.2


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org