Skip to content

Commit

Permalink
backed out high security check for llm custom events
Browse files Browse the repository at this point in the history
  • Loading branch information
nr-swilloughby committed Mar 25, 2024
1 parent 9f0c745 commit 0575551
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions v3/newrelic/internal_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,18 +552,18 @@ func (app *app) RecordCustomEvent(eventType string, params map[string]interface{
return nil
}

if app.config.Config.HighSecurity {
return errHighSecurityEnabled
}

if !app.config.CustomInsightsEvents.Enabled {
return errCustomEventsDisabled
}

if eventType == "LlmEmbedding" || eventType == "LlmChatCompletionSummary" || eventType == "LlmChatCompletionMessage" {
event, e = createCustomEventUnlimitedSize(eventType, params, time.Now())
} else {
if app.config.Config.HighSecurity {
return errHighSecurityEnabled
}

if !app.config.CustomInsightsEvents.Enabled {
return errCustomEventsDisabled
}

event, e := createCustomEvent(eventType, params, time.Now())
event, e = createCustomEvent(eventType, params, time.Now())
}
if nil != e {
return e
Expand Down

0 comments on commit 0575551

Please sign in to comment.