-
Notifications
You must be signed in to change notification settings - Fork 197
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
apmongo and apmgin do not work when used together #1573
Comments
As an example: What I'd expect to work:
What I've done as a workaround and found to work:
A previous solution (#585) said to use the .Request.Context() but I did not find this to work.
I am going to do some more work to determine if there's something odd on my end, though figured it'd be worth sharing this data regarding the issue. |
apmgin calls apmhttp to create the transaction, and then sets it as apm-agent-go/module/apmgin/middleware.go Lines 74 to 76 in 538be9b
On its end, apmhttp, when creating the transaction, calls apm-agent-go/module/apmhttp/handler.go Lines 131 to 138 in 538be9b
However, it seems that context is only being set if the request body is not nil. @6fears7 could you try the last alternative (using |
I set up a frontend that submits a POST request to a fake endpoint called "/testgin" with a JSON body of On the backend, TestGin retrieves the document from Mongo based off the collectionName:
No dice. |
|
Describe the bug
Using apmmongo and apmgin does not allow mongo to send spans
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect spans to generate from use
The text was updated successfully, but these errors were encountered: