-
Notifications
You must be signed in to change notification settings - Fork 10
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
[golang] Migrate Parametric app from grpc to http #3332
Conversation
Note: The 1 failing golang test is unrelated to these changes and should be fixed by this PR in dd-trace-go: DataDog/dd-trace-go#2960 |
@@ -775,10 +775,8 @@ def test_tracestate_w3c_p_inject(self, test_agent, test_library): | |||
with test_library: | |||
with test_library.start_span(name="new_span") as span: | |||
headers = test_library.inject_headers(span.span_id) | |||
|
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.
Probably just revert changes to this file?
@@ -162,9 +162,9 @@ def test_distinct_aggregationkeys_TS003(self, library_env, test_agent, test_libr | |||
|
|||
if test_server.lang == "golang": | |||
test_library.flush() | |||
|
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.
Revert changes to this one too?
utils/parametric/headers.py
Outdated
@@ -1,4 +1,6 @@ | |||
def make_single_request_and_get_inject_headers(test_library, headers): | |||
with test_library.start_span(name="name", service="service", resource="resource", http_headers=headers,) as span: | |||
headers = test_library.inject_headers(span.span_id) | |||
if not headers: # Check if headers is empty |
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.
Was this causing errors when the Go server didn't have any headers to inject? Rather than this, could the Go server just return an empty dictionary like other implementations?
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.
Just a few nits but looks good! Great job! 🥇
Motivation
GRPC is hard to use; HTTP is easier to understand and maintain.
Changes
Migrates the web server used for golang parametric apps from grpc to net-http
Also, modifies the custom struct types used for decoding and manipulating json request data in the golang parametric app.
Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present