codifierr commented on issue #9921:
URL: https://github.com/apache/apisix/issues/9921#issuecomment-1667317686
Same problem with 3.4.1.
**Opentelemetry plugin config**
"opentelemetry": {
"sampler": {
"name": "always_on"
},
"additional_attributes": [
"service_name",
"graphql_name",
"graphql_operation",
"request_method",
"bytes_received",
"bytes_sent",
"content_length",
"request_time",
"upstream_response_time",
"upstream_status"
]
}
**Logs**
2023-08-07 12:44:06 2023/08/07 07:14:06 [error] 149#149: *9438 lua entry
thread aborted: runtime error:
...deps/share/lua/5.1/opentelemetry/trace/exporter/otlp.lua:104: bad argument
#2 to 'encode' (string expected for field 'string_value', got number)
2023-08-07 12:44:06 stack traceback:
2023-08-07 12:44:06 coroutine 0:
2023-08-07 12:44:06 [C]: in function 'encode'
2023-08-07 12:44:06
...deps/share/lua/5.1/opentelemetry/trace/exporter/otlp.lua:104: in function
'export_spans'
2023-08-07 12:44:06
...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:45: in function
'process_batches'
2023-08-07 12:44:06
...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:77: in function
<...are/lua/5.1/opentelemetry/trace/batch_span_processor.lua:57>, context:
ngx.timer, client: 172.18.0.1, server: 0.0.0.0:9080
--
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]