Fix typos in log_event.go
@@ -116,7 +116,7 @@ type logEnricherConfig struct {
txn *Transaction
}
-// EnricherOption is a function that configures the enricher based on the source of data it recieves.
+// EnricherOption is a function that configures the enricher based on the source of data it receives.
type EnricherOption func(*logEnricherConfig)
// FromApp configures the log enricher to build a linking payload from an application.
@@ -124,7 +124,7 @@ func FromApp(app *Application) EnricherOption {
return func(cfg *logEnricherConfig) { cfg.app = app }
}
-// FromTxn configres the log enricher to build a linking payload from a transaction.
+// FromTxn configures the log enricher to build a linking payload from a transaction.
func FromTxn(txn *Transaction) EnricherOption {
return func(cfg *logEnricherConfig) { cfg.txn = txn }
}
@@ -137,7 +137,7 @@ type linkingMetadata struct {
entityName string
}
-// EnrichLog appends newrelic linnking metadata to a log stored in a byte buffer.
+// EnrichLog appends newrelic linking metadata to a log stored in a byte buffer.
// This should only be used by plugins built for frameworks.
func EnrichLog(buf *bytes.Buffer, opts EnricherOption) error {
config := logEnricherConfig{}
