Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jamel-jun opened this issue Nov 8, 2023 · 10 comments
Open

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

Jamel-jun opened this issue Nov 8, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@Jamel-jun
Copy link

Jamel-jun commented Nov 8, 2023

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

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@shreemaan-abhishek shreemaan-abhishek changed the title bug: grpc-transcode无法和 opentelemetry一起使用 bug: grpc-transcode cannot be used with opentelemetry Nov 8, 2023
@shreemaan-abhishek
Copy link
Contributor

could you please provide steps to reproduce?

@Jamel-jun
Copy link
Author

Jamel-jun commented Nov 9, 2023

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
Copy link
Contributor

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
Copy link
Member

kayx23 commented Nov 9, 2023

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
Copy link
Author

apisix config.conf
image

apisix dashboard settings
image

proto
image

route
image

@Jamel-jun
Copy link
Author

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
Copy link
Contributor

@Jamel-jun please provide more detailed reproduction steps.

@monkeyDluffy6017 monkeyDluffy6017 added the bug Something isn't working label Dec 12, 2023
@monkeyDluffy6017
Copy link
Contributor

@Jamel-jun any update?

@Jamel-jun
Copy link
Author

apisix config:
image
opentelemetry:
image
route:
image

response:
image

apisix logs:
Uploading image.png…

@shreemaan-abhishek
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants