Closed gwkline closed 5 months ago
~Ended up having to ignore the transaction in the websocket upgrader as well - seems to be working fine. Apologies!~
Edit: nevermind, still not being ignored it would seem
I'll try to verify the functionality of the ignore method on our end and get back to you.
Hi @gwkline, I think that if you enabled debug logs, there might be something in there that will help you or us get closer to a why this is happening. We actually log when transactions are marked ignored, and it would be helpful to just have that verification.
if txn.Config.Logger.DebugEnabled() {
txn.Config.Logger.Debug("transaction ended", map[string]interface{}{
"name": txn.FinalName,
"duration_ms": txn.Duration.Seconds() * 1000.0,
"ignored": txn.ignore,
"app_connected": txn.Reply.RunID != "",
})
}
you may not want to post debug logs here, so I would recommend opening a support ticket with New Relic if you have access to that.
just wrote out this test case, I suspect that this behavior may be more on your end than ours, but please feel free to correct me: https://github.com/newrelic/go-agent/pull/865/files
@gwkline may I close this?
Description
Hi there! I have a transaction I've been trying to ignore/not see in my NewRelic dashboard. It's a GraphQL subscription (websocket) and for some reason, calling the go-agent
.Ignore()
method does not seem to be properly ignoring this request.I am using Gin, so![CleanShot 2024-01-29 at 17 59 26](https://github.com/newrelic/go-agent/assets/77706736/171b303d-eba5-4f5b-a879-29c3c8a76985)
nrgin
is initialized in my API'smain
function. I am using all default options (to the best of my knowledge)The![CleanShot 2024-01-29 at 18 01 04](https://github.com/newrelic/go-agent/assets/77706736/133fd69b-9e1e-4669-9b3f-6f6de5fff8d2)
.Ignore()
call is happening in my GraphQL endpoint handler. I know the middleware is all working (as I can see transaction names and variables for my other requests), butIgnore()
is... being ignored 😅Expected Behavior
Calling
.Ignore()
should not show the transaction at all in the NewRelic dash.Your Environment
Running in a docker container based off of
golang:alpine