-
Notifications
You must be signed in to change notification settings - Fork 295
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
.Ignore()
not ignoring transaction (go-agent + nrgin)
#845
Comments
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
nrgin
is initialized in my API'smain
function. I am using all default options (to the best of my knowledge)The
.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
The text was updated successfully, but these errors were encountered: