Add custom event to example.
@@ -14,6 +14,9 @@ func handler(ctx context.Context) {
// instrumentation.
if txn := newrelic.FromContext(ctx); nil != txn {
txn.AddAttribute("userLevel", "gold")
+ txn.Application().RecordCustomEvent("MyEvent", map[string]interface{}{
+ "zip": "zap",
+ })
}
fmt.Println("hello world")
}
