Skip to content

Commit

Permalink
Test fix for Ruby 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Feb 7, 2024
1 parent 4c60bae commit 98c2b29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/new_relic/agent/llm/chat_completion_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def attributes
end

def attribute_name_exceptions
LlmEvent::ATTRIBUTE_NAME_EXCEPTIONS.merge(ResponseHeaders::ATTRIBUTE_NAME_EXCEPTIONS, ATTRIBUTE_NAME_EXCEPTIONS)
# TODO: `merge` accepts *args once <Ruby 2.5 is dropped
LlmEvent::ATTRIBUTE_NAME_EXCEPTIONS.merge(ResponseHeaders::ATTRIBUTE_NAME_EXCEPTIONS).merge(ATTRIBUTE_NAME_EXCEPTIONS)
end

def event_name
Expand Down
3 changes: 2 additions & 1 deletion lib/new_relic/agent/llm/embedding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def attributes
end

def attribute_name_exceptions
LlmEvent::ATTRIBUTE_NAME_EXCEPTIONS.merge(ResponseHeaders::ATTRIBUTE_NAME_EXCEPTIONS, ATTRIBUTE_NAME_EXCEPTIONS)
# TODO: `merge` accepts *args once <Ruby 2.5 is dropped
LlmEvent::ATTRIBUTE_NAME_EXCEPTIONS.merge(ResponseHeaders::ATTRIBUTE_NAME_EXCEPTIONS).merge(ATTRIBUTE_NAME_EXCEPTIONS)
end

def event_name
Expand Down

0 comments on commit 98c2b29

Please sign in to comment.