apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.3k stars 2.49k forks source link

bug: grpc-transcode cannot be used with opentelemetry #10460

Open Jamel-jun opened 10 months ago

Jamel-jun commented 10 months ago

Current Behavior

grpc-transcode cannot be used with opentelemetry. The interface backend is grpc, and the frontend requests through http application/json type, after reaching apisix. The OpenTelemetry plug-in sends the trace to otel, which is normal. But the apisix return parameter is incorrect. image

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

  1. image
  2. dashboard: 3.0.1

Environment

shreemaan-abhishek commented 10 months ago

could you please provide steps to reproduce?

Jamel-jun commented 10 months ago

could you please provide steps to reproduce?

  1. Deploy apisix.
  2. Import Protocol Buffers.
  3. Open the opentelemetry plug-in. This should definitely happen.
shreemaan-abhishek commented 10 months ago

Can you help with more detailed information, if you do that, anyone wanting to investigate on this issue can quickly get started and find the bug then plan to fix it. You can share the configurations and the commands you used to make the setup where you found this bug.

kayx23 commented 10 months ago

What do you mean by but the apisix return parameter is incorrect? The gRPC message suggest the proto method was not found. Does your upstream gRPC server implement this interface? Is proto configured properly on the APISIX side as the gRPC client? Need more info.

Jamel-jun commented 10 months ago

apisix config.conf image

apisix dashboard settings image

proto image

route image

Jamel-jun commented 10 months ago

What do you mean by but the apisix return parameter is incorrect? The gRPC message suggest the proto method was not found. Does your upstream gRPC server implement this interface? Is proto configured properly on the APISIX side as the gRPC client? Need more info.

I turned off the OpenTelemetry plug -in and returned to normal

shreemaan-abhishek commented 9 months ago

@Jamel-jun please provide more detailed reproduction steps.

monkeyDluffy6017 commented 9 months ago

@Jamel-jun any update?

Jamel-jun commented 7 months ago

apisix config: image opentelemetry: image route: image

response: image

apisix logs: ![Uploading image.png…]()

shreemaan-abhishek commented 7 months ago

it is helpful if you share the code/text instead of screenshots.