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
EXPERIMENTAL[grpc]: synonymous configuration fields #2980
Conversation
f6c0930
to
9c58784
Compare
Hello @aarnphm, Thanks for updating this PR. There are currently no PEP 8 issues detected in this PR. Cheers! 🍻 Comment last updated at 2022-09-13 11:54:03 UTC |
Codecov Report
@@ Coverage Diff @@
## main #2980 +/- ##
==========================================
- Coverage 67.96% 67.94% -0.02%
==========================================
Files 113 113
Lines 10887 10919 +32
Branches 1908 1947 +39
==========================================
+ Hits 7399 7419 +20
- Misses 3047 3062 +15
+ Partials 441 438 -3
|
e11f81c
to
6b2d765
Compare
2d1b5a5
to
5772b59
Compare
# - tracing.jaeger.* -> tracing.jaeger.http.* | ||
# - add tracing.jaeger.grpc.* with default values | ||
# TODO: follow up versioning and deprecation generation. | ||
v1_to_v2_migration(config_merger, override_config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only call this if there's no version specified, i.e. it's a v1 config.
We need to figure out some way to enforce people to version their configs though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking to have a version field
version: v1
...
if no version is specified, then we default that to v1
for key in ["cors", "max_request_size", "host", "port"] | ||
) | ||
# tracing compat | ||
if "tracing" in override_config: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a utility function rename_field
might be useful? e.g. rename_field(config, "zipkin.url", "zipkin.endpoint")
or something? I think it would make this easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sg.
b571593
to
1df6f6c
Compare
5772b59
to
18ae32a
Compare
18ae32a
to
cb39b57
Compare
86f7b3b
to
5c7939e
Compare
cb39b57
to
88cf2ac
Compare
88cf2ac
to
0a16669
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
6c287fe
to
7ef707a
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
7ef707a
to
4f8b279
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
4f8b279
to
5fd3d9e
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
5fd3d9e
to
3aa0e88
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
3aa0e88
to
9a3d20f
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
9a3d20f
to
e56b70c
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
enable tracing tests for grpc Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
e56b70c
to
f783297
Compare
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Address #2986
This PR address some tests followup as well as some configuration refactor to be consistent with correct exporter field
This PR will also introduce tests related to gRPC tracing interceptor
Depends on #2808 and will rebase to main once #2808 is merged.