-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
change(opentelemetry): the default network port for OTLP/HTTP is changed to 4318 #7007
Conversation
@soulbird Shall we also update the corresponding test cases? |
|
Why? No test cases for opentelemetry? |
the title of this PR should add |
In the test cases of opentelemetry, the data is reported to the black hole, and there is no port-related test. Look: https://github.com/apache/apisix/blob/master/t/plugin/opentelemetry.t#L41 |
Is opentelemetry really started? If yes, there should be has port |
No services related to opentelemetry were found to be started. |
This port change problem should be covered with test cases |
I think it is not necessary to add test coverage related to the default port, and the success or failure of the report will not affect the operation of APISIX. You can see that the |
So should this function return an error message? |
In the test, the apisix/t/plugin/opentelemetry2.t Line 43 in 0d1280c
So changing the port won't affect the behavior of the test, and the correctness of trace reporting is covered by lua-opentelemetry itself. On the other hand, as the default network port for OTLP/HTTP is changed from 4317 to 4318 in open-telemetry/opentelemetry-specification#1970, it is necessary to change APISIX to adapt to the new break change. CC the author of lua-opentelemetry and this plugin: @yangxikun |
Maybe its my careless to use 4317 port as default value. Change 4317 to 4318 is fine. Users usually configure the plugin option |
Co-authored-by: soulbird <zhaothree@gmail.com>
Co-authored-by: soulbird <zhaothree@gmail.com>
Description
opentelemetry's default network port for OTLP/HTTP is 4318 not 4317.
The default network port for OTLP/gRPC is 4317.
Checklist