Skip to content

Commit

Permalink
Fix regression issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-ap committed Dec 13, 2024
1 parent ce8ee8e commit e25deb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v3/integrations/nrgraphqlgo/nrgraphqlgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ type Extension struct{}
var _ graphql.Extension = Extension{}

// Init is used to help you initialize the extension - in this case, a noop
func (Extension) Init(ctx context.Context, _ *graphql.Params) context.Context {
func (Extension) Init(ctx context.Context, params *graphql.Params) context.Context {
if params != nil && newrelic.IsSecurityAgentPresent() {
newrelic.GetSecurityAgentInterface().SendEvent("GRAPHQL", params.RequestString != "", len(params.VariableValues) != 0)
}
return ctx
}

Expand Down

0 comments on commit e25deb3

Please sign in to comment.